POST v2/api/api-credentials/{id}/enabled
(Re)enable/disable the specified API credential. Only either the Interactive User who owns the specified API Credential or their associated Administrator can call this method, otherwise 403:Forbidden is returned.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | The identifier of the specified API Credential. |
Define this parameter in the request URI. |
newStateInput | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "Enabled": "sample string 1" }
Response Information
The newly updated API Credential is returned. This end-point can only be called by either the Interactive User who owns the specified API Credential or their associated Administrator, otherwise a 403:Forbidden is returned. If the Interactive User is disabled a 400:BadRequest is returned. If the specified API Credential is not known a 404:NotFound is returned.
Response body formats
application/json, text/json
Sample:
{ "Id": "b3056dda-7bf7-4be3-ac6b-2d265609128c", "Enabled": true, "Created": "2025-01-18T04:57:51.98577+00:00" }