Skip to main content
POST
/
v2
/
custom-field
/
workspace
/
{workspaceId}
cURL
curl --request POST \
  --url https://api.gptmaker.ai/v2/custom-field/workspace/{workspaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "jsonName": "<string>",
  "description": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "type": "STRING",
  "archived": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "jsonName": "<string>",
  "description": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "type": "STRING"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

ID do workspace

Body

application/json

Dados dos campos a ser adicionado

id
string

id do campo

name
string

nome do campo

jsonName
string

nome do arquivo JSON

description
string

descrição do campo

createdAt
string

data de criação do campo

updatedAt
string

data de atualização do campo

type
enum<string>
Available options:
STRING,
DATE,
DATE_TIME,
NUMBER,
BOOLEAN,
MONEY
archived
boolean

mostra se está arquivado ou não

Response

Campo adicionado com sucesso

id
string
name
string
jsonName
string
description
string
createdAt
string
updatedAt
string
type
enum<string>
Available options:
STRING,
DATE,
DATE_TIME,
NUMBER,
BOOLEAN,
MONEY
I