Activate users

Set inactive users back to Active.

POST https://cotlet.dev/api/v1/ispring/users/activate

write

Reactivates users and returns their status, with their permissions and history as before. It reaches no one by itself and one deactivate_users call undoes it, so it does not wait for your OK.

Parameters

Parameters: activate_users
NameTypeDescription
user_ids string[] required string[] Inactive users from list_users with status inactive.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/ispring/users/activate \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_ids":["user ids"]}'
Python
result = client.call("ispring", "activate_users", {"user_ids":["user ids"]})
Node.js
const result = await cotlet.call('ispring', 'activate_users', {"user_ids":["user ids"]});
CLI
cotlet call ispring activate_users --data '{"user_ids":["user ids"]}'

Example response

JSON

{
  "activated": 1,
  "users": [
    {
      "user_id": "u_92b7c1",
      "name": "Maria Silva",
      "status": "active"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.