/api/v1/place-kinds/{id}/fields
POST
/api/v1/place-kinds/{id}/fields
const url = 'https://example.com/api/v1/place-kinds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fields';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"key":"example","label":"example","kind":"text","unit":"example","options":["example"],"repeatable":true,"required":true,"secret":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/place-kinds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fields \ --header 'Content-Type: application/json' \ --data '{ "key": "example", "label": "example", "kind": "text", "unit": "example", "options": [ "example" ], "repeatable": true, "required": true, "secret": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
required
string
label
required
string
kind
required
string
unit
string
options
Array<string>
repeatable
boolean
required
boolean
secret
boolean
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
key
required
string
label
required
string | null
labelKey
required
string | null
kind
required
string
unit
required
string | null
options
required
Any of:
Array<string>
null
repeatable
required
boolean
required
required
boolean
secret
required
boolean
sort
required
integer
archivedAt
required
string | null
source
required
object
typeId
required
string format: uuid
via
required
string
rowVersion
required
integer
Example
{ "kind": "text", "source": { "via": "own" }}