Deployment Rest API Token Invalid

I have Create API Token with scopes “write:deployment-info:jira”, and I want to post data through rest api "/rest/deployments/0.1/bulk" (https://developer.atlassian.com/cloud/jira/software/rest/api-group-deployments/#api-rest-deployments-0-1-bulk-post) However, it’s not work. Always shows below error.

{1243543A-9AE0-4F8E-A0ED-8E875A65E858}

And I use httpbasicauth(Email and token).

Anyone have advice on it? Many thanks.

Best Regards,

Miles

Hi @MilesMai - Welcome :waving_hand:

Edit: Disregard my first reply. I had my wires crossed. Sorry.

Have you tested your basic auth credentials with other API calls?

Also, for troubleshooting, sometimes it’s easier to use an unscoped token. Sometimes the API docs are inaccurate with scopes. (My experience.)

@MilesMai When using scoped tokens you have to send requests to api.atlassian… url not your siteurl.atlassian.net. After creating the scoped token, there should be a link that explains how to use it.