# Update client **PATCH /clients/{clientId}** ## Servers - https://open.api.missionx.ai/v2: https://open.api.missionx.ai/v2 () ## Authentication methods - O auth2 ## Parameters ### Path parameters - **clientId** (string) The client's unique document ID, i.e. `org.clients[]._id`. ### Body: application/json (object) - **customId** (string) A custom identifier for internal reference by your system (not used by missionX). - **title** (string) The name of the client. - **emailDomains** (array[string]) The last part (after the @) of any client emails you might want to give access to projects. E.g. missionx.ai - **departments** (array[string]) One or more department IDs associated with this client, i.e. org.departments[]._id ## Responses ### 200 Successful response #### Body: application/json (object) - **_id** (string(ObjectId)) The unique document ID. - **createdBy** (string(ObjectId)) The creator's unique document ID. - **createdAt** (string(date-time)) The date the document was created in ISOString format. See [.toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString). - **updatedAt** (string(date-time)) The date the document was last updated in ISOString format. See [.toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString). - **customId** (string) A custom identifier for internal reference by your system (not used by missionX). - **title** (string) The name of the client. - **emailDomains** (array[string]) The last part (after the @) of any client emails you might want to give access to projects. E.g. missionx.ai - **departments** (array[string]) One or more department IDs associated with this client, i.e. org.departments[]._id ### 400 Bad Request #### Body: application/json (object) - **message** (string) An error message. - **code** (string) An error code to handle specific error responses. - **data** (object) Optionally, additional data to help handle the error. ### 500 Internal Server Error #### Body: application/json (object) - **message** (string) An error message. - **code** (string) An error code to handle specific error responses. - **data** (object) Optionally, additional data to help handle the error. [Powered by Bump.sh](https://bump.sh)