401 Unauthorized; scope does not match when creating scrum board in Jira Cloud using REST API

Hello! I am trying to create a scrum board for my project using the REST API and this URL:

https://api.atlassian.com/ex/jira/<cloudID>/rest/agile/1.0/board

And I am receiving the response 401 with message “Unauthorized; scope does not match”.

However, following the documentation, I have already added the scope write:board-scope:jira-software. Am I still missing something?

Here’s the request body I used, if it holds any importance

{
  "filterId": <id>,
  "location": {
    "projectKeyOrId": "<id>",
    "type": "project"
  },
  "name": "proj scrum board",
  "type": "scrum"
}

Bumping as I may have the same issue for another endpoint. Im using the basicAuth:

--user 'email@example.com:<api_token>' \