Skip to main content
PUT
/
api
/
settings
/
scopes
Bulk upsert scope mappings
curl --request PUT \
  --url https://api.example.com/api/settings/scopes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mappings": [
    {
      "project": "<string>",
      "scope": "work"
    }
  ]
}
'
[
  {
    "project": "<string>",
    "scope": "work",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mappings
ScopeMapping · object[]
required

Response

Successful Response

project
string
required
scope
enum<string>
required
Available options:
work,
personal
updated_at
string<date-time>
required