Creating the Personal Access Token for the DevOps Plan REST API

Youc an use Personal Access Tokens to connect the DevOps Plan REST API to its various REST endpoints.

About this task

You can create a personal access token from the welcome page of the DevOps Plan REST API. .

Procedure

  1. Click on Personal Access Tokens from the left hand menu on the screen.
  2. Click Create New API Token.
  3. Create a name for the token, select the expiration duration and click Create. Optionally, you can extend the duration of the token or revoke the token.
  4. Copy the new token by clicking Copy. You will need to paste this information when configuring your REST API connection.
  5. When configuring authentication to connect to a REST API endpoint, select Basic authentication and paste the entirely of the token. If configuring using Postman, click Send. Once you click send, you will see a response. To pass the request in cURL, see the following example:
    curl -H "Authorization: : Basic <PAT>" https://<domain>:<>/ccmweb/rest/<endpoint>