/api/v1/locations/{locationId}/places (POST)
POST
/api/v1/locations/{locationId}/places
const url = 'https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/places';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","parentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","kindKey":"example","icon":"example"}'};
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/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/places \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "parentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "kindKey": "example", "icon": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”locationId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
locationId
required
string format: uuid
name
required
string
kindKey
required
string
icon
required
string | null
isUnplaced
required
boolean
path
required
Array<object>
object
id
required
string format: uuid
name
required
string
kind
required
string
isUnplaced
required
boolean
shortCode
string | null
shortCode
required
string | null
fields
required
Array<object>
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
custom
required
object
key
additional properties
secrets
required
Array<object>
object
fieldKey
required
string
label
required
string | null
set
required
boolean
canReveal
required
boolean
counts
required
object
places
required
integer
things
required
integer
attachments
required
Array<object>
object
id
required
string format: uuid
role
required
string
sort
required
integer
file
required
Any of:
object
id
required
string format: uuid
sha256
required
string
bytes
required
number
mime
required
string
class
required
string
hasGps
required
boolean
derivativeState
required
string
thumbUrl
required
string | null
displayUrl
required
string | null
null
url
required
string | null
subject
required
object
placeId
required
string format: uuid
createdBy
required
object
displayName
required
string
rowVersion
required
integer
rowVersion
required
integer
Example
{ "path": [ { "kind": "place" } ], "fields": [ { "kind": "text", "source": { "via": "own" } } ], "attachments": [ { "role": "photo" } ]}