api_credentials

Updates an API credential

Updates an API credential

patch/api_credentials/{apiCredentialId}

Request

  • Base URL
    https://provisioning.commercelayer.io
  • URL
    https://provisioning.commercelayer.io/api_credentials/{apiCredentialId}
  • Auth
    HTTP bearer

Path parameters

apiCredentialIdstring required

The ID of the resource.

Request body

Example request

{
  "data": {
    "id": "XGZwpOSrWL",
    "attributes": {
      "name": "My app",
      "redirect_uri": "https://bluebrand.com/img/logo.svg",
      "expires_in": 7200,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "role": {
        "data": {
          "id": "XGZwpOSrWL"
        }
      }
    }
  }
}

Response

The updated API credential object

Changes

No recorded changes to this operation across all 1 revision of this API.