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.

Enum values: BANNER_LINE, PORTION_MARKING

markingIds
list<MarkingId>
optional

The marking IDs for which to generate a banner.

Show child attributes

Show child attributes

preview
boolean
optional

Enables the use of preview functionality.

Response body

CbacBanner
object
Hide child attributes

Hide child attributes

classificationString
string
markings
list<MarkingId>
optional
Show child attributes

Show child attributes

textColor
string

The hex value of a color.

backgroundColors
list<Color>
optional
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=BANNER_LINE&preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 { "markings": [ "18212f9a-0e63-4b79-96a0-aae04df23336" ], "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