Logo
Admin API API Documentation

Create Account

POST {{URL_ORIGIN}}/api/accounts

This API allows to create a new MP.

ID will be returned in the response, this ID is the unique identifier of the MP and should be used when sending update commands.

Note: this ID can be retrieved via Get MPs API.

Create MP- Error Codes

Code Message
1 System is unavailable
100 Missing or invalid parameter: [FieldName]
102 [FieldName] already exists
10001 Permission denied

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "id": "144", "name": "Account 2", "mpId": "14" }



Curl
curl -X POST 'URL_ORIGIN/api/accounts' -d '{"name":"Account 2","mpId":"14"}'

ENDPOINTS