Todos os endpoints

Desenvolvedores / StrawPoll API / Themes

Change a theme

PUT/themes/{id}

Changes the name and colors; a rename alone keeps the colors. workspaceId moves the theme into a workspace you own or administer (only to workspaces of the same owner), or with null back to its owner.

Requer uma chave de API.

Parâmetros

Caminho

  • id string (uuid) obrigatório

Corpo da requisição application/json

  • name string max. 255
  • workspaceId string (uuid) | null
  • properties ThemeProperties

Respostas

The theme.

  • id string (uuid)
  • userId string (uuid) | null

    The owner; null for StrawPoll's own themes.

  • workspaceId string (uuid) | null

    Set when the theme is shared with a workspace.

  • name string | null
  • properties ThemeProperties
  • createdAt string (date-time)

Experimente

Criar uma chave

Enviada do seu navegador direto para a API, para nenhum outro lugar. Com “Lembrar”, fica até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

PUT https://new.strawpoll.com/api/v4/themes/{id}

Cole uma chave de API para enviar as requisições que precisam de uma.

Requisições com chave contam para as requisições de API diárias do seu plano.