API ReferenceSpeaker

Update speaker

Update a speaker's name and role.

PATCH/spaces/{spaceId}/speakers/{speakerId}

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace.

  • speakerIdstringrequired

    ID of the speaker to update.

Body

application/json · object

  • namestringrequired
  • rolestringrequired

    One of"HOST""GUEST""CALLER"

Responses

  • 200Updated speaker

    application/json · Speaker

    • idstringrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • namestringrequired
    • rolestringrequired

      One of"HOST""GUEST""CALLER"

    • workspaceIdstringrequired
    • imageIdstring
  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/speakers/string' \
  --request PATCH \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "string",
  "role": "HOST"
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/speakers/string", {
  method: "PATCH",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "name": "string",
    "role": "HOST"
  }),
});
const text = await response.text();
import requests

response = requests.patch(
    "https://transcript.lol/api/v1/spaces/string/speakers/string",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"name\": \"string\",\n  \"role\": \"HOST\"\n}",
)
print(response.text)
{
  "id": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "name": "string",
  "role": "HOST",
  "workspaceId": "string",
  "imageId": "string"
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}