post
http://{{url}}/api/method/emotive_app.api.crm.credit_app.update_roles
This API is used to update roles for applicants within a specific credit application. It enables assigning or changing applicant roles (e.g., Buyer, Co Buyer 1, etc.) on an existing credit application record.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request Method
- POST
End Point
{{url}}/api/method/emotive_app.api.crm.credit_app.update_rolesExample Request
{
"doctype": "Credit Application",
"docname": "C-2024-08-00014",
"new_roles": {
"2024-CA-08-000019": "Buyer",
"2024-CA-08-000035": "Co Buyer 1"
}
}Response Explanation
A successful response will return a confirmation message.
Response Body Parameters
- message (
string)
Status message, typically"Ok"on success.
Example Response
{
"message": "Ok"
} 400Bad Request
403Forbidden
409Conflict
422Unprocessable Entity
500Internal Server Error
