Box Developer Documentation
 
    Latest version

    Update terms of service status for existing user

    put
    https://api.box.com/2.0
    /terms_of_service_user_statuses/:terms_of_service_user_status_id

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Updates the status for a terms of service for a user.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    stringin pathrequired
    324234

    The ID of the terms of service status.

    Request Body

    booleanin bodyrequired
    true

    Whether the user has accepted the terms.

    Response

    Returns the updated terms of service status object.

    application/jsonClient error

    An unexpected client error.

    put
    Update terms of service status for existing user
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X PUT "https://api.box.com/2.0/terms_of_service_user_statuses/324234" \
         -H "authorization: Bearer <ACCESS_TOKEN>" \
         -H "content-type: application/json" \
         -d '{
           "is_accepted": true
         }'

    Response Example

    {
      "id": "11446498",
      "type": "terms_of_service_user_status",
      "created_at": "2012-12-12T10:53:43-08:00",
      "is_accepted": true,
      "modified_at": "2012-12-12T10:53:43-08:00",
      "tos": {
        "id": "11446498",
        "type": "terms_of_service"
      },
      "user": {
        "id": "11446498",
        "type": "user",
        "login": "ceo@example.com",
        "name": "Aaron Levie"
      }
    }