API Documentation
|
where {orgId}
is the ID of an organisation and {labelId}
is the ID of one of this organisation's classifications.
GET
- retrieves information about a classification (specified by labelId
) configured in an organisation (specified by orgId
).DELETE
- deletes an existing classification (specified by labelId
) in an organisation (specified by orgId
).Note: Both of these methods take no parameters.
This API endpoint serves a number of purposes:
labelId
) configured in an organisation (specified by orgId
). A classification's ID can be obtained by calling the GET
method of the <access-service>/api/v1/organisations/{orgId}/labels API endpoint, which retrieves a list of information for all classifications configured in an organisation (specified by orgId
). GET
method call to this API endpoint is also returned in the response from a GET
method call to the <access-service>/api/v1/organisations/{orgId}/labels endpoint. Therefore, if you do not require a classification's description when retrieving information about the classification, there is no need to call the GET
method on this API endpoint.labelId
) from an organisation (specified by orgId
). Note: Be aware that by design and for security reasons, it is not possible to edit any aspect of a classification.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
GET
method, when this user is a member of the organisation specified by the {orgId}
of the request's URL.DELETE
method, when this user is a member of the organisation specified by the {orgId}
of the request's URL.The Cocoon Data Platform's resources available to one of these Cocoon Data users (above) is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful GET
requests only, a JSON-formatted response containing the following members is also returned: