-
Notifications
You must be signed in to change notification settings - Fork 0
CreatePartOption
Luis Huertas edited this page Feb 7, 2022
·
1 revision
Creates an application
Base Url : http://your-app-base-url.com
Endpoint : /auth/option/
Method : POST
Auth required : Yes
header key | header value | description |
---|---|---|
Authorization | BEARER jwtToken | access_token generated using /token
|
Permissions required : Access string 'OAUTH2_option:create'
type: body
{
"allowed": "select",
"applicationPart_id": 1
}
Request Fields Description
key | value | description |
---|---|---|
allowed | select | The allowed option |
applicationPart_id | 1 | The application part id |
{
"code": 200001,
"message": "Option added",
"content": {
"applicationId": 123
}
}
Response Fields Description
key | value | description |
---|---|---|
code | 200001 | result code |
message | Option added | result message |
content | { optionId } | id of the crated option |
Response codes
- If response is success, http status will be 201 and code in body will be 200001
code | description |
---|---|
500000 | Not categorized error |
400000 | Invalid body |
200001 | option was created |