API Documentation
|
where {orgId}
is the ID of an organisation.
POST
- adds a new clearance to an organisation (specified by orgId
).GET
- retrieves a list of information for all clearances defined within an organisation (specified by orgId
).This API endpoint serves a number of purposes:
orgId
). orgId
).This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
{orgId}
in 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...
The following header is required if the body of the request has a JSON object:
Content-Type: application/json
The following required parameters must be sent in the body of the POST request, each as individual members of a JSON object:
{orgId}
in the request's URL. The following optional parameters can also be sent in the body of the POST request, each as individual members of the JSON object that includes the Required POST-request parameters above:
{orgId}
in the URL. The following optional parameters can be sent in the URL of the GET request:
0
to 100
, representing the maximum number of items to be returned in the response, where an individual item is information about a clearance defined in the organisation (specified by {orgId}
in the request's URL). If this parameter is omitted, then its value is 0
by default, which does not apply restrictions to the number of items returned in the response. {orgId}
in the URL) returned in the response. Calls to this API endpoint may amount to potentially large numbers of items being returned from the Cocoon Data Platform. Since the order of these items in the response could differ significantly, based on the values of the orderBy and sortBy parameters below, this offset parameter provides pagination for items returned in responses, allowing items to be retrieved from any count greater than 0
(i.e. the first item returned in a response). If this parameter is omitted, then its value is 0
by default. {orgId}
in the URL) are returned in the response. This parameter orders items according to the value of the sortBy parameter specified below. Ordering items can be in either ascending alphanumeric order (by specifying the value ASC
for this parameter) or descending order (by specifying the value DESC
). If this parameter is omitted, then its value is ASC
by default. {orgId}
in the URL) returned in the response will be sorted. Valid field values for this parameter include: name
- the name of the clearance and description
- the description of the clearance. If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
{orgId}
in the request's URL), where these clearances have been filtered by any parameters submitted in the request. Each element of this array contains information about one of these clearances (represented as an object containing the following members unless otherwise stated). {orgId}
in the request's URL) that can be returned in the response.