401 Unauthorized Error for Create Sprints API with write:sprint:jira-software Scope

Hello,
I am currently working on integrating Jira Cloud APIs into my custom UI forge app. While attempting to create a new sprint using the Create Sprints API, I am encountering a 401 Unauthorized error with the message:

Unauthorized; scope does not match for write:sprint:jira-software scope

What confuses me is that other APIs that require the same scope, such as updating sprints using the Update Sprints API, are working perfectly fine with the same authentication setup.

Thanks

Hello @snehilsankalp

It’s highly likely that it’s not a scope issue, but that the request is mal-formed or has an errant character in the request path, so it being rejected with a generic 401 error message.

If you search this forum for ‘scope does not match’ you’ll find all the threads such as this one that have already discussed this topic and the cause.

Hey @snehilsankalp - how did you go with this in the end? Did you find a solution with @sunnyape 's suggestion?