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": "b9f4463e-b497-4932-aea4-878d15fe4043",
  "Enabled": true,
  "Created": "2020-09-25T04:15:30.8946906+00:00"
}