Skip to main content

Create Location

POST 

https://app.infodeck.io/api/organizations/:organizationId/locations

Create location

Request

Path Parameters

    organizationId stringrequired

    The ID of organization.

Body

required
    parentId string

    The parent location ID

    name stringrequired

    The name of location

    description string

    The description of location

    address string

    The address of location

    chatRoomId string

    The ID of chat room

    entities string[]

    The entities of location

    image string

    The image of location

Responses

Schema
    data objectrequired

    Data of the created location.

    id stringrequired
    organizationId stringrequired
    name stringrequired
    description stringrequired
    address stringrequired
    chatRoomId stringrequired
    entities object[]required
  • Array [
  • ]
  • image stringrequired

Authorization: http

name: usertype: httpscheme: bearerbearerFormat: JWTdescription: Get your API token via POST /authentications/tokens
curl -L -X POST 'https://app.infodeck.io/api/organizations/:organizationId/locations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"parentId": "string",
"name": "string",
"description": "string",
"address": "string",
"chatRoomId": "string",
"entities": [
"string"
],
"image": "string"
}'
Request Collapse all
Base URL
https://app.infodeck.io/api
Auth
Parameters
— pathrequired
Body required
{
  "parentId": "string",
  "name": "string",
  "description": "string",
  "address": "string",
  "chatRoomId": "string",
  "entities": [
    "string"
  ],
  "image": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!