URL structure
{orgGroupId} is the ID of an organisation and {planId} is the ID of a plan.
Supported methods and overview
GET- retrieves information about a plan (specified byplanId) configured in an organisation (specified byorgGroupId).PUT- modifies the fields of an existing plan (specified byplanId) in an organisation (specified byorgGroupId).DELETE- deletes an existing plan (specified byplanId) in an organisation (specified byorgGroupId).
The
GET and DELETE methods take no parameters.Detailed description
This API endpoint serves a number of purposes:-
Retrieves information about a plan (specified by
planId) configured in an organisation (specified byorgGroupId). A plan’s ID can be obtained by calling theGETmethod of the <access-service>/api/v1/organisations/{orgGroupId}/plans API endpoint, which retrieves a list of field information for all current plans configured in an organisation (specified byorgGroupId). -
Modifies the fields of an existing plan (specified by
planId) in an organisation (specified byorgGroupId). These fields include the plan’s name, description, quota value (in MiB) and a flag that determines whether or not this plan will be the new default plan. -
Deletes an existing plan (specified by
planId) in an organisation (specified byorgGroupId).
Notes:- A MiB is a mebibyte, where one MiB = 1 x 1024 x 1024 bytes = 1048576 bytes.
- Any Covata users in this organisation who were assigned this plan are automatically switched over to the default plan. Be aware that if this default plan has a quota which is lower than the amount of remote storage (managed by the Content Service) utilised by any of these users, then those users will no longer be able to upload any data until their storage utilization drops below the default plan’s quota.
- It is not possible delete the default plan.
Supported roles and conditions
This API endpoint supports requests utilising Covata user accounts with the following roles (as described in the Organisation Administrator’s Guide) and conditions:- Organisation administrator - when this user is a member of the organisation specified by
{orgGroupId}in the request’s URL.
Required headers
The appropriate access token as theBearer token:
Authorisation: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
Content-Type: application/json
Optional parameters
The following optional parameters can be sent in the body of the PUT request, each as individual members of a JSON object:- name - The updated name for the plan.
- description - The updated description for the plan.
- quota - The updated quota (in MiB) for the plan.
-
default - An updated boolean value determining whether (
true) or not (false) the plan being updated in the organisation (specified by{orgGroupId}in the URL) will be flagged as the new default plan for this organisation.
Example (request):
Returns
If the request succeeded, then an HTTP response status200 OK is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
- id - The ID of the (updated) plan.
- name - The (updated) name of the plan.
- description - The (updated) description of the plan.
- quota - The (updated) quota of the plan (in MiB).
-
default - An (updated) boolean value indicated whether (
true) or not (false) this (updated) plan in the organisation (specified by{orgGroupId}in the URL) is flagged as the default plan for this organisation.
Example (response):

