API Documentation
|
where {contactId}
is the ID of a Cocoon Data user's contact.
PUT
- modifies the an existing contact (specified by contactId
) for a Cocoon Data user (whose access token is submitted in the request to this endpoint).DELETE
- removes an existing contact (specified by contactId
) or the Cocoon Data user (whose access token is submitted in the request to this endpoint).Note: The
DELETE
method takes no parameters.
This API endpoint serves a number of purposes:
contactId
) that belongs to the Cocoon Data user (whose access token is submitted in the request to this endpoint). GET
method on the <access-service>/api/v1/users/me/contacts endpoint, which retrieves a list of information for all contacts of the Cocoon Data user (whose access token is submitted in the request). contactId
) that belongs to a Cocoon Data user (whose access token is submitted in the request to this endpoint).Note: A contact can also be modified or removed through the Contacts feature of SafeShare for Web.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
{contactId}
in the request's URL) belongs to this user.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 required parameters must be sent in the body of the PUT request, as individual members of a JSON object:
{contactId}
in the URL and belonging to the Cocoon Data user whose access token is submitted in the request to this endpoint) to be modified. The following optional parameters can also be sent in the body of the PUT request, each as individual members of the JSON object that includes the Required PUT-request parameters above:
{contactId}
in the URL and belonging to the Cocoon Data user whose access token is submitted in the request to this endpoint) to be modified. Omitting this value in the request clears this property's value to null
. null
. If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful PUT
requests only, a JSON-formatted response containing the following members is also returned:
null
. null
.