Activate personal access token

Activates a Personal Access Token (PAT) that is currently inactive. If the PAT is already active, no action is taken.

HTTP request
PUT /auth/pats/{tokenId}/activate
Authorization requirements
Header Type Required Description
Authorization string Yes Bearer token used to authenticate the request. See Authentication flows for instructions on generating this token.
X-DFNS-USERACTION string Yes User action signature used to authorize change-inducing requests. See User Action Signing flows for instructions on generating this signature.
Path parameters
Parameter Type Required Description
tokenId string Yes Minimum length: 1.
Request body
curl --request PUT \
  --url https://api.digitalassets.ibm.com/auth/pats/{tokenId}/activate \
  --header 'Authorization: Bearer <token>' \
  --header 'X-DFNS-USERACTION: <api-key>'
Response
200: Success

Returns the updated Personal Access Token object.

Example response:

{
  "dateCreated": "<string>",
  "credId": "<string>",
  "isActive": true,
  "kind": "Pat",
  "linkedUserId": "<string>",
  "linkedAppId": "<string>",
  "name": "<string>",
  "orgId": "<string>",
  "permissionAssignments": [
    {
      "permissionName": "<string>",
      "permissionId": "<string>",
      "assignmentId": "<string>",
      "operations": [
        "<string>"
      ]
    }
  ],
  "publicKey": "<string>",
  "tokenId": "<string>",
  "accessToken": "<string>"
}