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.
Parses classification marking strings (e.g. 'S//NF') into their component marking IDs. Strings that cannot be parsed are returned in 'errors' with a human-readable message.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-read.
objectlist<string>optionalThe classification strings to parse, e.g. 'S//NF'. Duplicate entries are ignored. At most 1000 entries are accepted.
objectmap<string, array>optionalMap of valid classification strings to their component marking IDs. Strings that could not be parsed are absent from this map and appear in 'errors' instead.
map<string, string>optionalMap of classification strings that could not be parsed to a human-readable error message.
1
2
3
4
5
curl -X POST \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/admin/markings/parseClassifications?preview=true" \
-d '{"classificationStrings":["MTS//MNF","MU"]}'1
2
3
4
5
6
7
8
9
10
11
{
"parsed": {
"MTS//MNF": [
"MNF",
"MTS"
]
},
"errors": {
"INVALID_MARKING": "Unknown marking: INVALID_MARKING"
}
}| Error Name | ||
|---|---|---|
Parse | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | The provided token does not have permission to parse the given classification strings. | |
| Parameters | classificationStrings | |
Cbac | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | CBAC is not available. | |
| Parameters | | |
See Errors for a general overview of errors in the platform.