Create a location

POST https://api.expirationreminder.net/v1/locations

Request Body

Property Type Required Description
id string (uuid) No -
parent_location_id string (uuid) No -
name string No -
team_id string (uuid) No -
modified string No -
custom_fields object[] No -

Sample Request

{
  "id": "00000000-0000-0000-0000-000000000000",
  "parent_location_id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "team_id": "00000000-0000-0000-0000-000000000000",
  "modified": "string",
  "custom_fields": [
    {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "value": "string"
  }
  ]
}
POST /v1/locations
$ curl https://api.expirationreminder.net/v1/locations \
  -H "Authorization: Bearer <token>"

Responses

Property Type Description
id string (uuid) -
parent_location_id string (uuid) -
name string -
team_id string (uuid) -
modified string -
custom_fields object[] -

Example Response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "parent_location_id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "team_id": "00000000-0000-0000-0000-000000000000",
  "modified": "string",
  "custom_fields": [
    {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "value": "string"
  }
  ]
}

Bad Request

Property Type Description
message string -
ok boolean -

Example Response

{
  "message": "string",
  "ok": false
}

Conflict

Property Type Description
message string -
ok boolean -

Example Response

{
  "message": "string",
  "ok": false
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.