/api/users/:id/status

Activates/Deactivates user specified by ID.

Resource Information

Request Parameters

ParameterDetailExample
idID of the user to update.123
status

Form parameter containing new user status - one of following options:

  • ACTIVE
  • INACTIVE

ACTIVE

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "status=\"ACTIVE\"" https://service.belladati.com/api/users/123/status

When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.

 

  • No labels