Patch User
This endpoint can be used to patch a user
Request
PATCH /user
Note
The user's UUID is embedded in the JWT token, so it is not required in the url
Authorization
Authorization
header is required for this endpoint. See Authorization Tokens for details about auth tokens.
Headers
N/A
Query Parameters
N/A
Body
The body of the request is expected to be an array of JSON Patch operations
[
{ "op": "replace", "path": "/some-attribute", "value": "new value for attribute" }
]
Warning
This must be an array, even if you are sending just one operation
Response
Response | Status Code | More Information |
---|---|---|
Success | 200 |
If the patch operation was successful |
Not Found | 404 |
Survey or item does not exist with the provided UUID |
Unauthorized | 401 |
If user is not authorized |
Internal Server Error | 500 |
Unknown error |
Headers
N/A
Body
The patched resource