Confirm GDPR

Confirm the GDPR on behalf of a specified user.

Request URL

POST {base_url}/{api_path}/gdpr/update?access_token={access_token}

Request parameters

Parameter Required Type Description
username Yes String Specify the username of the user whose GDPR policy is to be confirmed.

Valid value:

  • For an administrator, specify the administrator's username.
  • For an extension user, specify the user's extension number.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Example

Request example

POST /openapi/v1.0/gdpr/update?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "username": "admin"
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}