Skip to main content
POST
Create credit access assignment
The organization bot token must have the following scopes:
  • credit-limit-policy:write
Assigns a credit access policy to a selector. Each selector has at most one assignment in a workspace. If the selector is already assigned to another policy, this request moves it to the policy in the path. A member can match more than one assignment. Notion applies them in this order:
  1. A user assignment for the member wins over every other assignment.
  2. Otherwise, the highest limit among the member’s space_permission_group and scim_attribute assignments applies. unlimited is highest and no_access is lowest.
  3. Otherwise, the all_space_members assignment applies.
The user_id must belong to a workspace member, and the group_id must belong to a permission group in the workspace. Otherwise the request returns a 404 error.

Authorizations

Authorization
string
header
required

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

Headers

Notion-Version
enum<string>
required

The Admin API version to use for this request.

Available options:
2026-06-01

Path Parameters

policy_id
string<uuid>
required

ID of the policy to assign.

space_id
string<uuid>
required

Body

application/json
selector
object
required

Who the policy applies to. If this selector is already assigned to another policy, the request moves it to this policy.

Response

object
string
required

Always credit_access_policy_assignment

Allowed value: "credit_access_policy_assignment"
id
string<uuid>
required

ID of the assignment.

space_id
string<uuid>
required

ID of the workspace the assignment belongs to.

version
string
required

Changes every time the assignment changes. Pass it as expected_version to delete the assignment.

policy_id
string<uuid>
required

ID of the assigned policy.

selector
object
required

Who the policy applies to.