---
agentTools:
  projectIndex: https://coviu.readme.io/llms.txt
---

# Update Participant

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Coviu REST API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.coviu.com"
    }
  ],
  "security": [
    {
      "ClientCredentials": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/v1/auth/token",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "Role": {
        "type": "string",
        "enum": [
          "GUEST",
          "HOST",
          "PARTICIPANT"
        ]
      },
      "Participant": {
        "type": "object",
        "required": [
          "client_id",
          "display_name",
          "participant_id",
          "role",
          "session_id",
          "created"
        ],
        "properties": {
          "client_id": {
            "type": "string",
            "format": "uuid"
          },
          "display_name": {
            "type": "string",
            "format": "uuid"
          },
          "entry_url": {
            "type": "string",
            "format": "uuid"
          },
          "participant_id": {
            "type": "string",
            "format": "uuid"
          },
          "picture": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "session_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string"
          },
          "user_hint": {
            "type": "string"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "coviu_user_id": {
            "type": "string",
            "format": "uuid"
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "UpdateParticipant": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": "string"
          },
          "picture": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "state": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/v1/participants/{participant_id}": {
      "parameters": [
        {
          "name": "participant_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "put": {
        "tags": [
          "Participants"
        ],
        "summary": "Update Participant",
        "operationId": "updateParticipant",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateParticipant"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Participant updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Participant"
                }
              }
            }
          },
          "400": {
            "description": "400"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 138,
      "2": 232,
      "3": 232,
      "4": 249,
      "5": 76,
      "6": 129,
      "7": 100,
      "8": 54,
      "9": 28,
      "10": 74,
      "11": 255
    }
  }
}
```