Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Cbac Banner

GET/api/v2/admin/cbacBanner
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Returns a classification banner string and colors for the given set of marking IDs.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-read.

Query parameters

displayType
string (enum)optional

The display type of the banner. Defaults to PORTION_MARKING. BANNER_LINE is the long classification string used in the header of a document; PORTION_MARKING is a short classification string used for individual paragraphs

Enum values: BANNER_LINE, PORTION_MARKING

markingIds
list<MarkingId>optional

The marking IDs for which to generate a banner. Duplicate entries are ignored.

Show child attributes

Show child attributes

preview
booleanoptional

Enables the use of preview functionality.

Response body

CbacBanner
object
Hide child attributes

Hide child attributes

classificationString
string

The formatted classification string for the requested markings and display type.

markings
list<MarkingId>optional

The marking IDs represented by the classification string.

Show child attributes

Show child attributes

textColor
string

The hexadecimal text color to use when displaying the banner.

backgroundColors
list<Color>optional

The hexadecimal background colors to use when displaying the banner.

Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 curl \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/admin/cbacBanner?displayType=PORTION_MARKING&markingIds=MTS%2CMNF&preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 { "markings": [ "MTS", "MNF" ], "backgroundColors": [ "#FFFFFF" ], "classificationString": "MTS//MNF", "textColor": "#FFFFFF" }

Error responses

Error Name
GetCbacBannerPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionThe provided token does not have permission to get the CBAC banner for the markings.
ParametersmarkingIds
CbacUnavailableError CodeINVALID_ARGUMENT
Status Code400
DescriptionCBAC is not available.
Parameters
UnknownClassificationBannerDisplayTypeError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe provided classification banner display type is not recognized.
ParametersdisplayType
CbacBannerNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given CbacBanner could not be found.
Parameters