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": {
"apiScopeEnabled": true,
"expiresInHours": 500.5
},
"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": {
"apiScopeEnabled": true,
"expiresInHours": 500.5
},
"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
Security configuration
Show child attributes