Download OpenAPI specification:Download
Each response of the API is structured according to the same schema. The status property displays the returned
HTTP status, while the links property provides useful
URI templates (RFC 6570) for navigation.
The answer itself is provided via the content property. If an error occurs, the problem property is set and
provides useful information about the error.
A problem has four different properties. The type property specifies the type of the problem. In addition, the
title property provides a human-readable title and the optional message property contains the error message
itself. If the problem is of the type constraint-violations, the optional violations property provides more
details about the problem. Such a violation object supplies the two fields field and message.
The API uses only the following status codes:
The 200 (OK) status code indicates that the request has succeeded. The payload sent in a 200 response depends
on the request method.
The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to
something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing,
or deceptive request routing).
The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid
authentication credentials for the target resource.
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it.
404 The 404 (Not Found) status code indicates that the origin server did not find a current representation for the
target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack
of representation is temporary or permanent.
The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition
that prevented it from fulfilling the request.
To use the client API, a security token must always be sent in the header. This token can be obtained via the authentication API.
| username required | string SP user |
| password required | string Cleartext password |
| userDirectoryId required | integer <int64> User directory identifier |
Login successful
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
Logout successful
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -H "X-AUTH-TOKEN:112f14f5-f260-4afd-a26b-0ca8ed1885d6" -H "Accept:application/json" -X POST https://sp01.example.org/api/logout
Authorizations: |
| id required | string <uuid> API task identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" https://sp01.example.org/api/task/65efaf53-9da8-4e03-bb18-ec3ee8a878ce
Authorizations: |
| id required | string <uuid> API task identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -X DELETE https://sp01.example.org/api/task/65efaf53-9da8-4e03-bb18-ec3ee8a878ce
Authorizations: |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:b5b3aeca-1e9d-414a-8d9d-c973424ab4eb" -H "Accept:application/json" https://sp01.example.org/api/version
Authorizations: |
| id | integer <int64> Guest user identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| username required | string Guest user username |
| password required | string Guest user password |
string Guest user email address | |
| comment | string Guest user comment |
| createdAt | string <date-time> Result was created at |
| validFrom | string <date-time> Guest user start of validity |
| validForMinutes required | integer <int64> Guest user is valid for x minutes |
| enabled | boolean Enable the guest user immediately after creation |
| cellphoneNumber | string Guest user cellphone number |
| sponsor | string Guest user source of origin |
| redirectUrl | string Guest user default redirect URL |
| deleteAfter | integer <int32> Delete x minutes after creation |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
| customFields | Array of object (CustomField) Customized input fields |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Guest user identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:67f74f28-eb45-45ca-9d5b-ac591ab97128" -H "Accept: application/json" https://sp01.example.org/api/guest-users/2
Authorizations: |
| id required | integer <int64> Guest user identifier |
| id | integer <int64> Guest user identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| username required | string Guest user username |
| password required | string Guest user password |
string Guest user email address | |
| comment | string Guest user comment |
| createdAt | string <date-time> Result was created at |
| validFrom | string <date-time> Guest user start of validity |
| validForMinutes required | integer <int64> Guest user is valid for x minutes |
| enabled | boolean Enable the guest user immediately after creation |
| cellphoneNumber | string Guest user cellphone number |
| sponsor | string Guest user source of origin |
| redirectUrl | string Guest user default redirect URL |
| deleteAfter | integer <int32> Delete x minutes after creation |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
| customFields | Array of object (CustomField) Customized input fields |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Guest user identifier |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:67f74f28-eb45-45ca-9d5b-ac591ab97128" -X DELETE https://sp01.example.org/api/guest-users/2
Authorizations: |
| id | integer <int64> MPP device identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| name required | string Device name |
| macAddresses | Array of string |
| comment | string Device comment |
| createdAt | string <date-time> MPP device was created at |
| deleteAfter | integer <int32> Delete x minutes after creation |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> MPP device identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" https://sp01.example.org/api/mpp-devices/1
Authorizations: |
| id required | integer <int64> MPP device identifier |
| id | integer <int64> MPP device identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| name required | string Device name |
| macAddresses | Array of string |
| comment | string Device comment |
| createdAt | string <date-time> MPP device was created at |
| deleteAfter | integer <int32> Delete x minutes after creation |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> MPP device identifier |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -X DELETE https://sp01.example.org/api/mpp-devices/1
Authorizations: |
| id | integer <int64> MPP device identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| name required | string Device name |
| macAddresses | Array of string |
| comment | string Device comment |
| createdAt | string <date-time> MPP device was created at |
| deleteAfter | integer <int32> Delete x minutes after creation |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> MPP voucher identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" https://sp01.example.org/api/mpp-vouchers/1
Authorizations: |
| id required | integer <int64> MPP voucher identifier |
| id | integer <int64> MPP voucher identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| customerKey required | string MPP customer key |
| groupKey required | string MPP group key |
| code required | string Voucher code |
| maxUsageCount required | integer <int32> Max usage count, 0 means unlimited |
| validFrom | string <date-time> MPP voucher valid from |
| validTo | string <date-time> MPP voucher valid to |
| comment | string Guest user voucher code |
| enabled required | boolean Enable the voucher immediately after creation |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> MPP voucher identifier |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -X DELETE https://sp01.example.org/api/mpp-vouchers/1
Authorizations: |
| createdAt | string <date-time> Result was created at |
| id | integer <int64> Macman user identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| deviceGroupId required | integer <int64> Macman device group identifier |
| username required | string Macman user name |
| password required | string Macman user password |
| comment | string User comment |
| expires | string <date-time> User expiration |
| deleteAfter | integer <int32> Delete x minutes after creation |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Macman user identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" https://sp01.example.org/api/macman-users/1
Authorizations: |
| id required | integer <int64> Macman user identifier |
| createdAt | string <date-time> Result was created at |
| id | integer <int64> Macman user identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| deviceGroupId required | integer <int64> Macman device group identifier |
| username required | string Macman user name |
| password required | string Macman user password |
| comment | string User comment |
| expires | string <date-time> User expiration |
| deleteAfter | integer <int32> Delete x minutes after creation |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Macman user identifier |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -X DELETE https://sp01.example.org/api/macman-users/1
Authorizations: |
| org_unit_id | integer <int64> Organizational unit identifier |
| match_type | string Default: "all" Enum:"all" "any" Search logic.
|
| match_similarity | string Default: "exact" Enum:"exact" "contain" "similar" Defines the accuracy of the search.
Note: similar is not supported on custom fields |
| username | string Macman user name |
| comment | string Macman user comment |
| custom_fields | object Example: "custom_fields[1]=true&custom_fields[3]=Zurich" Custom fields map. Custom field identifier as key and search term as value |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" "https://sp01.example.org/api/macman-users/search?org_unit_id=1&match_type=all&match_similarity=exact&username=john&comment=test&custom_fields%5B3%5D=Zurich&custom_fields%5B2%5D=true"
Authorizations: |
| createdAt | string <date-time> Result was created at |
| id | integer <int64> Macman device identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| deviceGroupId required | integer <int64> Device group identifier |
| deviceTypeId required | integer <int64> Device type identifier |
| macmanOrgUnitId required | integer <int64> Macman organizational unit identifier |
| name required | string Device name |
| description | string Device description |
| enabled required | boolean Enable the device immediately after creation |
| deleteAfter | integer <int32> Delete x minutes after creation |
| macmanInterfaces | Array of object (MacmanInterface) Macman interfaces |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Macman device identifier |
Success
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -H "Accept: application/json" https://sp01.example.org/api/macman-devices/1
Authorizations: |
| id required | integer <int64> Macman device identifier |
| createdAt | string <date-time> Result was created at |
| id | integer <int64> Macman device identifier |
| orgUnitId required | integer <int64> Organizational unit identifier |
| deviceGroupId required | integer <int64> Device group identifier |
| deviceTypeId required | integer <int64> Device type identifier |
| macmanOrgUnitId required | integer <int64> Macman organizational unit identifier |
| name required | string Device name |
| description | string Device description |
| enabled required | boolean Enable the device immediately after creation |
| deleteAfter | integer <int32> Delete x minutes after creation |
| macmanInterfaces | Array of object (MacmanInterface) Macman interfaces |
| customFields | Array of object (CustomField) Customized input fields |
| onDuplicateStrategy | string Default: "take-ownership" Enum:"reject" "take-ownership" |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Authorizations: |
| id required | integer <int64> Macman device identifier |
Task scheduled
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
curl -v -i -H "X-AUTH-TOKEN:9be7d5fe-b4a1-4e7f-894e-496916df1f94" -X DELETE https://sp01.example.org/api/macman-devices/1