POSTADITUS/Ticket purchase & registration/User/Update Terms of Service Status

Update Terms of Service Status

POST{{API_BASE_URL}}/shop/v1/user/:userId/terms-of-service

Update User Status

This endpoint allows you to update the approval status of a user in the system. It is used to ensure compliance with terms of service.

Request

  • Method: POST

  • URL: {{API_BASE_URL}}/shop/v1/user/:userId/terms-of-service

Request Body

The request body must be in JSON format and should contain the following parameters:

  • Items (Array of Objects): A list of items to be updated.

    • UniqueId (String): The unique identifier of the terms of service item that you want to update.

    • IsApproved (Boolean): A flag indicating whether the item is approved or not.

Example Request Body:

{
"Items": [
0: {
"UniqueId": "55d12ee4-67e8-4bf9-8da9-a459b0...",
"IsApproved": true
}
]
}

Response

Upon a successful request, the API will return a response with the following structure:

  • Status: 200 OK

  • Content-Type: application/vnd.aditus.v1+json

  • Response Body:

    • data (Object): Contains the result of the update operation.

      • userId (String): The ID of the user whose status was updated.

      • isSuccess (Boolean): Indicates whether the update operation was successful.

Example Response:

{
"data": {
"userId": "",
"isSuccess": true
}
}

Notes

  • Ensure that the userId in the URL is replaced with the actual user's ID whose status you wish to update.

  • The response will confirm whether the operation was successful or not, allowing you to handle subsequent logic accordingly.

Authentication#auth

This endpoint does not require authentication.

Responses#responses

200OKUpdate Terms of Service Status