Skip to main content
POST
/
location
Create location
curl --request POST \
  --url https://api.truecold.io/location \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "street": "<string>",
  "city": "<string>",
  "country": "<string>",
  "zip_code": "<string>",
  "latitude": 123,
  "longitude": 123
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "linked_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "code": "<string>",
  "street": "<string>",
  "zip_code": "<string>",
  "city": "<string>",
  "country": "<string>",
  "latitude": 123,
  "longitude": 123,
  "soft_deleted": "2023-11-07T05:31:56Z",
  "soft_deleted_by": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://integrations.truecold.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for authentication. Contact your administrator to get an API key.

Body

application/json

Location input data for creation

name
string
required

Location name

code
string
required

Location code

street
string
required

Street address

city
string
required

City name

country
string
required

Country name

zip_code
string
required

Postal code

latitude
number
required

Latitude coordinate

longitude
number
required

Longitude coordinate

Response

Successfully created location

Location entity (API response)

id
string<uuid>

Unique identifier

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp

account_id
string<uuid>

Account ID

linked_site_id
string<uuid>

Linked site ID

name
string

name name

code
string

code code

street
string

Street

zip_code
string

zip code

city
string

City

country
string

Country

latitude
number

Latitude

longitude
number

Longitude

soft_deleted
string<date-time>

Soft deletion timestamp

soft_deleted_by
string

User who soft deleted the record