Tenants - Update

Writeable Tenant fields can be updated with the update Tenant endpoint, POST /1/tenants/{tenant_id}. The authenticated user must be a member of the Tenant to update the object.

Update Tenant

POST /1/tenants/{tenant_id}
Host: https://api.cogniac.io

Example: Updating a Tenant

curl -X POST https://api.cogniac.io/1/tenants/current \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz" \
-H "Content-Type: application/json" \
-d '{
"name":"Cogniac Demo Updated",
"description":"Updated Description"
}'
import requests

my_headers = {"Authorization": "Bearer abcdefg.hijklmnop.qrstuvwxyz"}
tenant_data = {
  "name":"Cogniac Demo Updated",
  "description":"Updated Description"
}
res = requests.post("https://api.cogniac.io/1/tenants/current", 
                    data=tenant_data,
                    headers=my_headers)

For instructions on obtaining an authorization token, see Authentication.

{
  "tenant_id":"63QhzFLc9tg4",
  "name":"Cogniac Demo Updated",
  "description":"Updated Description",
  "created_at":1455044755,
  "modified_at":1455044770,
  "created_by":"[email protected]"
}