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

NameDescriptionAdditional 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": "0252347a-eeaa-44c9-a75e-03b5c4518c3f",
  "Enabled": true,
  "Created": "2024-04-27T01:46:51.3251172+00:00"
}