Skip to content

Data api users update

Yuji Takayama edited this page Jul 10, 2013 · 1 revision

Users: update

Update user data.

Authorization is required.

Request

HTTP Request

This method accepts PUT and POST with __method=PUT.

PUT https://your-host/your-mt-api.cgi/v1/users/{user_id}

Parameters

Method Parameters

Parameter Type Description
user_id unsigned integer The user ID or the word 'me'.

Query Parameters

Not available.

Request Body

Parameter Type Description
__method string This is not required but if request method is 'POST', should be set as 'PUT'
user Users (JSON) An Users resource for update.

Response

If successful, this method will return an Users resource as the response body.

Status Code

Code Description
200 no error
403 Do not have permission to update the requested user.
404 User not found
405 Request method is not 'PUT' or 'POST' with '__method=PUT'
Clone this wiki locally