---
agentTools:
  projectIndex: https://docs.yordex.com/llms.txt
---

# Update terms of service status

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.test.yordex.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "name": "Authorization",
        "in": "header",
        "x-default": "your-api-key",
        "type": "apiKey"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/users/:userId": {
      "patch": {
        "summary": "Update terms of service status",
        "description": "",
        "operationId": "update-user-terms-of-service-status",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "default": ":your-api-key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "termsOfService"
                ],
                "properties": {
                  "termsOfService": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "accepted": {
                          "type": "boolean",
                          "default": false
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "58b53d131065f9c438aa22de:64761987cda2db006d65d899"
}
```