DELETE /api/users/:user_id

deactivate a user

Success Response Code: 200

Params

Param name Description
user_id
optional

id of user to deactivate


Value: Must be a Integer

Response Fields

user deactivated user User

Example Curl Commands

curl -X DELETE -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/users/25.json"

Examples

DELETE 
{}
200
{
  "user": {
    "contact_info": {
      "email": "active'3@socialcast.com"
    },
    "manager": null,
    "custom_fields": [],
    "followable": false,
    "contact_id": null,
    "following_count": 0,
    "followers_count": 0,
    "status_message": null,
    "id": 3,
    "first_name": "J'øhn3",
    "last_name": "D'øe3",
    "name": "J'øhn3 D'øe3",
    "html_name": "J'øhn3 D'øe3",
    "url": "https://socialcast.socialcast.test/users/3-j%C3%B8hn3d%C3%B8e3",
    "avatars": {
      "is_system_default": false,
      "id": 1,
      "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=08eef00c926e774e362277b0911bb7fd0585e6e1cbb76ad11479c63673cf32df",
      "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=19e0ebfd18a757f1d53f8fd97e933128c89c7f637c0d10fd71edc4521b3a6243",
      "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3d0d6e5f5f1a7524c98a594d1e66f906702cff774909b958acfd75c8d347b0f8",
      "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b9ee954a35cbc1e290b25f13a91797fdb9238f078667a8471298ed54077a6100",
      "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=9b91301a991de16890200158a2b18d433e651345b73413fabbec0c664a01d5ad",
      "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170420T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=abee4fb109e48b93da5c9708fc6f523a56d8c76ba01d1808b6364b934d08f610"
    },
    "username": "Jøhn3Døe3",
    "active": false,
    "terminated": true,
    "inactive": false,
    "role": "member",
    "type": "User",
    "title": null,
    "out_of_office": false,
    "out_of_office_on": null,
    "back_in_office_on": null,
    "company_login": null
  }
}