Cloud-Plugins Rest APIs (1.8.0)

Download OpenAPI specification:Download

Documentation of the Open-Xchange Cloud-Plugins Rest APIs.

Authentication

basicAuth

HTTP Basic Authentication.

Security scheme type: HTTP
HTTP Authorization Scheme basic

contextAdminAuth

The API can be accessed via HTTP Basic Auth with context administrator credentials or reseller/master administrator credentials if MASTER_ACCOUNT_OVERRIDE is enabled.

Security scheme type: HTTP
HTTP Authorization Scheme basic

tennantAuth

Basic auth, that must be configured per tenant in the middleware

Security scheme type: HTTP
HTTP Authorization Scheme basic

Admin

Cloud-Plugins Admin Rest API

get custom name of user

get /oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom

get custom name of user

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Responses

200

Success

401

Authorization error

404

User does not exist or custom id not found in user

Response samples

application/json
Copy
Expand all Collapse all
{
  • "custom":
    [
    ]
}

change custom id(s)

put /oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Request Body schema: application/json
custom
string

Responses

200

Settings successfully updated

400

Generic error, e.g. wrong parameters

401

Authorization error

404

User does not exist

Request samples

application/json
Copy
Expand all Collapse all
{
  • "custom": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

delete custom id(s)

delete /oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/custom

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Responses

200

Settings successfully updated

401

Authorization error

404

User does not exist

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

get msisdn of user

get /oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn

get msisdn of user

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Responses

200

Success

401

Authorization error

404

User does not exist or msisdn not set for user

Response samples

application/json
Copy
Expand all Collapse all
{
  • "msisdn": "+49.12345.6789"
}

change msisdn

put /oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Request Body schema: application/json
msisdn
string

Responses

200

Settings successfully updated

400

Generic error, e.g. wrong parameters

401

Authorization error

404

User does not exist

Request samples

application/json
Copy
Expand all Collapse all
{
  • "msisdn": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

delete msisdn

delete /oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/msisdn

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Responses

200

Settings successfully updated

401

Authorization error

404

User does not exist

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

search for users using given query parameters

get /oxaas/v1/admin/oxuser
http://example.com/oxaas/v1/admin/oxuser
https://example.com/oxaas/v1/admin/oxuser

get uidname of user

Authorizations:
query Parameters
search
required
string

string to search for

field
string
Enum:"UIDNAME" "MSISDN" "CUSTOM" "ANY"

field to search into

Responses

200

Success

400

Generic error, e.g. wrong parameters

401

Authorization error

404

User not found

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

get uidname of user

get /oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname

get uidname of user

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Responses

200

Success

401

Authorization error

404

User does not exist

Response samples

application/json
Copy
Expand all Collapse all
{
  • "uidname": "johndoe@example.com"
}

change uidname

put /oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uidname

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Request Body schema: application/json
uidname
string

Responses

200

Settings successfully updated

400

Generic error, e.g. wrong parameters

401

Authorization error

404

User does not exist

409

User does already exist

Request samples

application/json
Copy
Expand all Collapse all
{
  • "uidname": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

change or remove msisdn or custom id(s)

post /oxaas/v1/admin/contexts/{contextid}/users/{userid}/uids
http://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uids
https://example.com/oxaas/v1/admin/contexts/{contextid}/users/{userid}/uids

change user data

Authorizations:
path Parameters
contextid
required
number

context id

userid
required
number

user id

Request Body schema: application/json
msisdn
string
custom
Array of string

Responses

200

Settings successfully updated

201

At least one setting has been created

400

Generic error, e.g. wrong parameters

401

Authorization error

404

User does not exist

Request samples

application/json
Copy
Expand all Collapse all
{
  • "msisdn": "+49.12345.6789",
  • "custom":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "context-id": 24,
  • "user-id": 42,
  • "uidname": "johndoe@example.com",
  • "msisdn": "+49.12345.6789"
}

Mail

Cloud-Plugins Mail Rest API

get all data in one request

get /api/oxaas/mail/{uid}
http://example.com/api/oxaas/mail/{uid}
https://example.com/api/oxaas/mail/{uid}

get all data in one request

Authorizations:
path Parameters
uid
required
string

user identifier

Responses

200

Success

401

Authorization error

500

General Error

Response samples

application/json
Copy
Expand all Collapse all
{
  • "recentmails":
    [
    ],
  • "quota":
    {
    },
  • "newmessages":
    {
    },
  • "recentmessages":
    {
    }
}

get the number of new messages since last login

get /api/oxaas/mail/{uid}/newmessages
http://example.com/api/oxaas/mail/{uid}/newmessages
https://example.com/api/oxaas/mail/{uid}/newmessages

get the number of new messages since last login

Authorizations:
path Parameters
uid
required
string

user identifier

Responses

200

Success

401

Authorization error

500

General Error

Response samples

Copy
Expand all Collapse all
{
  • "newmessages": 0
}

get the current user quota

get /api/oxaas/mail/{uid}/quota
http://example.com/api/oxaas/mail/{uid}/quota
https://example.com/api/oxaas/mail/{uid}/quota

get the current user quota

Authorizations:
path Parameters
uid
required
string

user identifier

Responses

200

Success

401

Authorization error

500

General Error

Response samples

Copy
Expand all Collapse all
{
  • "mailQuota":
    {
    }
}

get 5 recent mails from user

get /api/oxaas/mail/{uid}/recentmails
http://example.com/api/oxaas/mail/{uid}/recentmails
https://example.com/api/oxaas/mail/{uid}/recentmails

get 5 recent mails from user

Authorizations:
path Parameters
uid
required
string

user identifier

Responses

200

Success

401

Authorization error

500

General Error

Response samples

Copy
Expand all Collapse all
[
  • {
    }
]

get the number of unread mails in all folders

get /api/oxaas/mail/{uid}/recentmessages
http://example.com/api/oxaas/mail/{uid}/recentmessages
https://example.com/api/oxaas/mail/{uid}/recentmessages

get the number of unread mails in all folders

Authorizations:
path Parameters
uid
required
string

user identifier

Responses

200

Success

401

Authorization error

500

General Error

Response samples

Copy
Expand all Collapse all
{
  • "newmessages": 0
}