curl --request PUT \
--url https://apix.us.amity.co/api/v3/network-settings/security-configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"serverKey": {
"expiresInHours": 500.5,
"apiScopeEnabled": true
},
"adminToken": {
"expiresInHours": 500.5
}
}'
{
"securityConfigs": {
"serverKey": {
"expiresInHours": 168,
"apiScopeEnabled": true
},
"adminToken": {
"expiresInHours": 24
}
}
}
Create or update security configuration for server key and admin token settings.
curl --request PUT \
--url https://apix.us.amity.co/api/v3/network-settings/security-configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"serverKey": {
"expiresInHours": 500.5,
"apiScopeEnabled": true
},
"adminToken": {
"expiresInHours": 500.5
}
}'
{
"securityConfigs": {
"serverKey": {
"expiresInHours": 168,
"apiScopeEnabled": true
},
"adminToken": {
"expiresInHours": 24
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Configuration for security settings
The body is of type object
.
Security configuration
The response is of type object
.