cURL
curl --request PUT \ --url https://{tenant}/api/apis/{apiID}/access \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userGroupIds": [ "663a4ed6b6be920001b191aa", "663a4ed6b6be920001b191ab" ], "userIds": [ "663a5bbf5715ec8040251f2a" ] } '
{ "Message": "API access updated", "Meta": null, "Status": "OK" }
This will update the user group and users that have access to an API.The userIds and userGroup sent will entirely replace the existing userIds IDs and userGroup ids.
The Tyk Dashboard API Access Credentials
The API ID
[ "663a4ed6b6be920001b191aa", "663a4ed6b6be920001b191ab"]
[ "663b2a835715ecb6edef24e3", "663a5bbf5715ec8040251f2a"]
API access updated
Was this page helpful?