Update user
Changed onRequest
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Path parameters
ID of the user
Query parameters
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Headers
Required if using a multi organizations token
Request body
Example request
{
"firstName": "John",
"lastName": "Doe",
"email": "user@example.com",
"phoneNumber": "415-555-0100",
"role": "MEMBER",
"customRole": "Custom Role Name",
"authType": "SAML",
"externalData": {
"popularErpSolutionId": "asd732da"
},
"extraFields": {
"Department": "Engineering"
},
"hourlyRate": 120
}Response
Successfully edited user
Example response
{
"user": {
"id": 963,
"firstName": "John",
"lastName": "Doe",
"role": "MEMBER",
"customRole": "Custom Role Name",
"email": "user@example.com",
"phoneNumber": "415-555-0100",
"removedFromOrganization": true,
"authType": "SAML",
"hourlyRate": 120,
"externalData": {
"popularErpSolutionId": "asd732da"
},
"extraFields": {
"Department": "Engineering"
},
"lastVisitedAt": "2026-05-06T12:34:56.000Z",
"createdAt": "2026-05-06T12:34:56.000Z"
}
}Changes
- warning
added the new
VIEW_ONLYenum value to the/response property for the response status - info
added the new
VIEW_ONLYenum value to the request property
- warning
- breaking
removed the media type
application/octet-streamfrom the request body - warning
added the new
OPERATORenum value to the/response property for the response status - warning
added the new
SERVICE_ACCOUNTenum value to the/response property for the response status - info
added the new optional
headerrequest parameterx-organization-id - info
added the new optional
queryrequest parameterskipWebhook - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
OPERATORenum value to the request property - info
added the new
SERVICE_ACCOUNTenum value to the request property - info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking