Updates a commission using its commission guid.
Responses
-
Successfully updated the commission.
-
Invalid request. See response body for details.
-
Unauthorized request. See response body for details.
-
Permission denied. See response body for details.
-
Commission not found.
-
Optimistic concurrency check failed. The If-Match header is missing or it does not contain the version currently in the database.
-
Unknown error. See response body for details.
PATCH
/commissions/{commissionId}
curl \
--request PATCH 'http://api.example.com/commissions/{commissionId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":"string (UUID)","agentId":"string (UUID)","officeName":"string","prefix":"string","firstName":"string","middleName":"string","lastName":"string","suffix":"string","endCode":"string","endCount":"number (float)","primary":"boolean","amount":"number (float)","percentage":"number (float)","calculationMethod":"string"}'
Request example
{
"id": "string (UUID)",
"agentId": "string (UUID)",
"officeName": "string",
"prefix": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"suffix": "string",
"endCode": "string",
"endCount": "number (float)",
"primary": "boolean",
"amount": "number (float)",
"percentage": "number (float)",
"calculationMethod": "string"
}
Response examples (200)
{}
Response examples (404)
{
"code": 42,
"message": "string",
"details": [
"string"
]
}