Adding new orgs to Marking Categories

Hi!

I understand that I am able to create Marking Categories with multiple Orgs through an API call:

curl 'https://STACK_URL/multipass/api/authz/markings/categories/v2' \
  -H 'authorization: Bearer TOKEN' \
  -H 'content-type: application/json' \
  --data-raw '{"categoryType":"CONJUNCTIVE","description":"","displayName":"super-test-marking-category-multi-org","permissionRequest":{"isPublic":true,"organizationRids":["ORG_RID_1","ORG_RID_2"],"permissions":{"ADMINISTER":["YOUR USER ID"],"VIEW":["YOUR USER ID"]}}}'

(This is a private API, but I think it’s coming to public APIs at some point).

Is there a way to add more orgs to a Marking Category in a similar fashion? For this usecase we’re going to keep creating new Orgs for new customers and we want to give them access to certain markings.

1 Like

Good news,

There is a private API endpoint to modify the Marking Category as well.

The Curl version looks like:

curl 'https://STACK_URL/multipass/api/authz/markings/categories/CATEGORY_ID' \
  -X 'PUT' \
  -H 'authorization: Bearer TOKEN' \
  -H 'content-type: application/json' \
  --data-raw '{"organizationRidsToAdd":[],"organizationRidsToRemove":[],"permissionsToAdd":{},"permissionsToRemove":{}}'

Use your OrgRIDs in the organizationsRidsToAdd or organizationRidsToRemove fields.

You can find the CATEGORY_ID in the network tab when loading or modifying the category from the UI.