Geek Social — Documentação
API ReferenceCollections

PATCH /collections/{id}/schema/{entryId}

Atualizar entrada do schema (isRequired)

PATCH/collections/{id}/schema/{entryId}Auth: accessToken

Marca/desmarca campo como obrigatório.

Request

CampoTipoRequeridoDescrição
isRequiredbooleansim

Response

200

Sem corpo na resposta.

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X PATCH 'http://localhost:3003/collections/{id}/schema/{entryId}' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/collections/{id}/schema/{entryId}', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page