API Documentation
|
where {configId}
is the ID of a SafeShare Administration-only property (not related to theming SafeShare's interfaces).
GET
- retrieves the value of a configurable SafeShare Administration-only property (specified by configId
).PUT
- modifies the value of a configurable SafeShare Administration-only property (not related to theming SafeShare's interfaces).Note: The
GET
method takes no parameters.
This API endpoint serves a number of purposes:
configId
). Such a SafeShare Administration property's ID can be obtained by calling the <access-service>/api/v1/config/server API endpoint, which retrieves a list of information for all configurable SafeShare Administration properties (not related to theming SafeShare's interfaces). GET
request to this API endpoint is also returned in the response from the <access-service>/api/v1/config/server endpoint. Therefore, if you already have a configurable SafeShare Administration-only property's ID, there is no need to call the GET
method on this API endpoint.This API endpoint supports the following Cocoon Data user roles (as described in the SafeShare Administrator's Guide):
The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria 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 optional parameter can also be sent in the body of the PUT request, as an individual member of a JSON object:
{configId}
in the request's URL). configId
value is 1
): Although omitting the propertyValue parameter above in a request serves no purpose, an empty JSON object must at least be passed in the body of PUT requests to this endpoint for a successful response:
{}
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: