Marking service#
This service manages Markings, which are a mechanism to restrict access to data sources.
OpenAPI file: nominal.authorization.markings.v1.json
Endpoints#
Create marking#
POST /authorization/markings/v1
Creates a marking. Throws HTTP 409 / gRPC 6 if a marking with the same ID already exists. Throws HTTP 403 / gRPC 7 if the user does not have permission to create a marking. Throws HTTP 403 / gRPC 7 if the user does not have permission to read some of the specified groups.
Body
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbol
Fields of
Symbol- one of
icon,emoji,imagerequired
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
Response
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
}
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"icon": "<icon>"},
"color": {"hexCode": "<hex code>"},
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"icon": "<icon>"},
"color": {"hexCode": "<hex code>"},
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"icon": "<icon>"},
"color": {"hexCode": "<hex code>"},
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
Archive markings#
POST /authorization/markings/v1/archive-batch
Archives markings. Archiving a marking is an idempotent operation that prevents further changes or applications of the marking. Archived markings will not appear in search but can be retrieved by get endpoints. Throws HTTP 403 / gRPC 7 if the user does not have permission to archive one or more of the markings or if any of the markings are not found. Throws HTTP 400 / gRPC 3 if the archived marking is currently applied to one or more resources.
Body
The body is an array of string.
Response
An empty JSON object, {}.
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/archive-batch" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '[
"string"
]'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/archive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/archive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/archive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{}
Batch get markings#
POST /authorization/markings/v1/batch-get
Gets multiple markings by RID. If a marking is not found or the user doesn’t have permission to read it, it will not be included in the response.
Body
markingRidsarray of string
Response
markingsarray ofMarking
Fields of
Markingridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/batch-get" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"markingRids": [
"<marking rids>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"markings": [
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
]
}
Batch get marking metadata#
POST /authorization/markings/v1/batch-get-metadata
Gets metadata for multiple markings by RID. Metadata does not include the authorized groups. If a marking is not found or the user doesn’t have permission to read it, it will not be included in the response.
Body
markingRidsarray of string
Response
markingMetadatasarray ofMarkingMetadata
Fields of
MarkingMetadataridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/batch-get-metadata" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"markingRids": [
"<marking rids>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"markingRids": ["<marking rids>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"markingMetadatas": [
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
]
}
Get marking by ID#
GET /authorization/markings/v1/id/{id}
Gets a marking by its ID, a human-readable identifier unique within the org. Throws HTTP 403 / gRPC 7 if the user does not have permission to read the marking. Throws HTTP 403 / gRPC 5 if the marking is not found.
Path parameters
idstring requiredMatches
^[a-z][a-z0-9-]*$.
Response
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl "https://api.gov.nominal.io/api/authorization/markings/v1/id/<id>" \
-H "Authorization: Bearer <api key>"
import requests
response = requests.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/id/<id>",
headers={"Authorization": "Bearer <api key>"},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/id/<id>",
headers={"Authorization": "Bearer <api key>"},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/id/<id>",
headers={"Authorization": "Bearer <api key>"},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
Get markings for resources#
POST /authorization/markings/v1/markings-for-resources
Gets the requested resources and the markings applied to them. Since the number of markings applied to a resource is typically small, this endpoint will return all markings for each resource. Any unauthorized resources or markings will be filtered from the response.
Body
resourcesarray of stringThe resources to get the markings for.
Response
resourceToMarkingsmap of string toResourceMarkingsListA map from resource ID to the markings applied to them.
Fields of
ResourceMarkingsListappliedMarkingsarray ofAppliedMarking
Fields of
AppliedMarkingmarkingRidstring
appliedAtstring (date-time)
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/markings-for-resources" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"resources": [
"<resources>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/markings-for-resources",
headers={"Authorization": "Bearer <api key>"},
json={"resources": ["<resources>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/markings-for-resources",
headers={"Authorization": "Bearer <api key>"},
json={"resources": ["<resources>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/markings-for-resources",
headers={"Authorization": "Bearer <api key>"},
json={"resources": ["<resources>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"resourceToMarkings": {
"<key>": {
"appliedMarkings": [
{
"markingRid": "<marking rid>",
"appliedAt": "2026-01-01T00:00:00Z"
}
]
}
}
}
Update markings on resource#
POST /authorization/markings/v1/resource/{resource}/markings
Update the markings that are applied on a resource. Supports applying and removing markings at once. This endpoint can be used to atomically replace the markings on a resource, or bulk apply/remove markings. This operation is idempotent and will not throw an error if the marking is already applied/removed on the resource. If a resource marking pair is present in both markings_to_apply and markings_to_remove, this will throw. Throws HTTP 403 / gRPC 7 if the user does not have permission to change the markings on the resource. Throws HTTP 400 / gRPC 3 if trying to apply an archived marking.
Path parameters
resourcestring required
Body
markingsToApplyarray of string
markingsToRemovearray of string
Response
An empty JSON object, {}.
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/resource/<resource>/markings" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"markingsToApply": [
"<markings to apply>"
],
"markingsToRemove": [
"<markings to remove>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/resource/<resource>/markings",
headers={"Authorization": "Bearer <api key>"},
json={
"markingsToApply": ["<markings to apply>"],
"markingsToRemove": ["<markings to remove>"],
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/resource/<resource>/markings",
headers={"Authorization": "Bearer <api key>"},
json={
"markingsToApply": ["<markings to apply>"],
"markingsToRemove": ["<markings to remove>"],
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/resource/<resource>/markings",
headers={"Authorization": "Bearer <api key>"},
json={
"markingsToApply": ["<markings to apply>"],
"markingsToRemove": ["<markings to remove>"],
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{}
Search markings#
POST /authorization/markings/v1/search
Search Markings, returning paged results. Throws HTTP 400 / gRPC 3 if the query is incorrectly formed.
Body
querySearchMarkingsQuery
Fields of
SearchMarkingsQuery- one of
idExactSubstringSearch,and,orrequired
idExactSubstringSearchstringSearch for markings with an ID that contains the given query as a substring.
andSearchMarkingsQueryList
Fields of
SearchMarkingsQueryListqueriesarray ofSearchMarkingsQuery
- one of
pageSizeintegerPage sizes greater than 1_000 will be rejected. Default pageSize is 100. From 1 to 1,000.
nextPageTokenstring
Response
markingMetadatasarray ofMarkingMetadata
Fields of
MarkingMetadataridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
nextPageTokenstring
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/search" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"query": {
"idExactSubstringSearch": "<id exact substring search>"
},
"pageSize": 1,
"nextPageToken": "<next page token>"
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/search",
headers={"Authorization": "Bearer <api key>"},
json={
"query": {"idExactSubstringSearch": "<id exact substring search>"},
"pageSize": 1,
"nextPageToken": "<next page token>",
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/search",
headers={"Authorization": "Bearer <api key>"},
json={
"query": {"idExactSubstringSearch": "<id exact substring search>"},
"pageSize": 1,
"nextPageToken": "<next page token>",
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/search",
headers={"Authorization": "Bearer <api key>"},
json={
"query": {"idExactSubstringSearch": "<id exact substring search>"},
"pageSize": 1,
"nextPageToken": "<next page token>",
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"markingMetadatas": [
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
],
"nextPageToken": "<next page token>"
}
Unarchive markings#
POST /authorization/markings/v1/unarchive-batch
Unarchives markings. Restores ability to apply and modify marking. Throws HTTP 403 / gRPC 7 if the user does not have permission to unarchive one or more of the markings or if any of the markings are not found.
Body
The body is an array of string.
Response
An empty JSON object, {}.
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/unarchive-batch" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '[
"string"
]'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/unarchive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/unarchive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/unarchive-batch",
headers={"Authorization": "Bearer <api key>"},
json=["string"],
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{}
Get resources for marking#
POST /authorization/markings/v1/{markingRid}/resources
Gets the resources that a Marking is applied to. This endpoint is paginated. Any unauthorized resources will be filtered from the response. Throws HTTP 403 / gRPC 7 if the user does not have permission to read the marking.
Path parameters
markingRidstring required
Body
pageSizeintegerPage sizes greater than 1_000 will be rejected. Default pageSize is 100. From 1 to 1,000.
nextPageTokenstring
Response
resourcesarray ofMarkedResource
Fields of
MarkedResourceresourcestring
appliedAtstring (date-time)
nextPageTokenstring
Request
curl -X POST "https://api.gov.nominal.io/api/authorization/markings/v1/<marking rid>/resources" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"pageSize": 1,
"nextPageToken": "<next page token>"
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/<marking rid>/resources",
headers={"Authorization": "Bearer <api key>"},
json={"pageSize": 1, "nextPageToken": "<next page token>"},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/<marking rid>/resources",
headers={"Authorization": "Bearer <api key>"},
json={"pageSize": 1, "nextPageToken": "<next page token>"},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/authorization/markings/v1/<marking rid>/resources",
headers={"Authorization": "Bearer <api key>"},
json={"pageSize": 1, "nextPageToken": "<next page token>"},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"resources": [
{
"resource": "<resource>",
"appliedAt": "2026-01-01T00:00:00Z"
}
],
"nextPageToken": "<next page token>"
}
Get marking#
GET /authorization/markings/v1/{rid}
Gets a marking by its RID. Throws HTTP 403 / gRPC 7 if the user does not have permission to read the marking. Throws HTTP 403 / gRPC 5 if the marking is not found.
Path parameters
ridstring required
Response
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl "https://api.gov.nominal.io/api/authorization/markings/v1/<rid>" \
-H "Authorization: Bearer <api key>"
import requests
response = requests.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.get(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
Update marking#
PUT /authorization/markings/v1/{rid}
Updates a marking. Throws HTTP 403 / gRPC 7 if the user does not have permission to update the marking. Throws HTTP 403 / gRPC 7 if the user does not have permission to read any of the specified groups. Throws HTTP 403 / gRPC 5 if the marking is not found. Throws HTTP 409 / gRPC 6 if trying to update the ID of a marking to an ID that already exists. Throws HTTP 400 / gRPC 3 if trying to update an archived marking.
Path parameters
ridstring required
Body
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolUpdateMarkingSymbolWrapper
Fields of
UpdateMarkingSymbolWrappervalueSymbol
Fields of
Symbol- one of
icon,emoji,imagerequired
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorUpdateMarkingColorWrapper
Fields of
UpdateMarkingColorWrappervalueColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
Response
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
Fields of
AuthorizedGroupsgroupRidsarray of string
symbolSymbolSymbol and color to identify markings
Fields of
Symbol- one of
icon,emoji,image
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
- one of
colorColor
Fields of
ColorhexCodestringhex color Matches
^#[0-9a-f]{6}$.
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
Request
curl -X PUT "https://api.gov.nominal.io/api/authorization/markings/v1/<rid>" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"value": {
"icon": "<icon>"
}
},
"color": {
"value": {
"hexCode": "<hex code>"
}
}
}'
import requests
response = requests.put(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"value": {"icon": "<icon>"}},
"color": {"value": {"hexCode": "<hex code>"}},
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.put(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"value": {"icon": "<icon>"}},
"color": {"value": {"hexCode": "<hex code>"}},
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.put(
"https://api.gov.nominal.io/api/authorization/markings/v1/<rid>",
headers={"Authorization": "Bearer <api key>"},
json={
"id": "<id>",
"description": "<description>",
"authorizedGroups": {"groupRids": ["<group rids>"]},
"symbol": {"value": {"icon": "<icon>"}},
"color": {"value": {"hexCode": "<hex code>"}},
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"rid": "<rid>",
"id": "<id>",
"description": "<description>",
"authorizedGroups": {
"groupRids": [
"<group rids>"
]
},
"symbol": {
"icon": "<icon>"
},
"color": {
"hexCode": "<hex code>"
},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"isArchived": true
}
Types#
AppliedMarking#
markingRidstring
appliedAtstring (date-time)
Color#
hexCodestringhex color Matches
^#[0-9a-f]{6}$.
MarkedResource#
resourcestring
appliedAtstring (date-time)
Marking#
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
authorizedGroupsAuthorizedGroupsGroup RIDs that are authorized to access data sources with this marking.
symbolSymbolSymbol and color to identify markings
colorColor
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
MarkingMetadata#
A leaner representation of a Marking that doesn’t include the authorized groups.
ridstring
idstringHuman-readable identifier for this marking. Must be unique within the organization. Must be lower case alphanumeric characters, optionally separated by hyphens. Matches
^[a-z][a-z0-9-]*$.descriptionstring
symbolSymbolSymbol and color to identify markings
colorColor
createdAtstring (date-time)
updatedAtstring (date-time)
isArchivedboolean
ResourceMarkingsList#
appliedMarkingsarray ofAppliedMarking
SearchMarkingsQuery#
Set exactly one of the fields below.
- one of
idExactSubstringSearch,and,orrequired
idExactSubstringSearchstringSearch for markings with an ID that contains the given query as a substring.
SearchMarkingsQueryList#
queriesarray ofSearchMarkingsQuery
Symbol#
Set exactly one of the fields below.
- one of
icon,emoji,imagerequired
iconstringIcon name (e.g. castle)
emojistringEmoji name (e.g. :castle:)
imagestringImage url (e.g. https://example.com/image.png)
UpdateMarkingColorWrapper#
valueColor
UpdateMarkingSymbolWrapper#
valueSymbol
Page design based on Scalar, MIT License.