{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-ad-account-user-update-request-schema.json",
  "title": "AdAccountUserUpdateRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-user-access-api-openapi.yml#/components/schemas/AdAccountUserUpdateRequest",
  "type": "object",
  "properties": {
    "patch": {
      "type": "object",
      "properties": {
        "$set": {
          "$ref": "#/$defs/AdAccountUser"
        }
      }
    }
  },
  "$defs": {
    "AdAccountUser": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string",
          "description": "URN of the sponsored account"
        },
        "user": {
          "type": "string",
          "description": "URN of the person"
        },
        "role": {
          "type": "string",
          "enum": [
            "ACCOUNT_BILLING_ADMIN",
            "ACCOUNT_MANAGER",
            "CAMPAIGN_MANAGER",
            "CREATIVE_MANAGER",
            "VIEWER"
          ],
          "description": "Role of the user in the account"
        }
      },
      "required": [
        "account",
        "user",
        "role"
      ]
    }
  }
}