Adding Custom Data to a Location

In order to add custom data a location must already exist.

Required Permission

Any of can-create-locations, can-update-locations

See Auth* (scopes).

Request

POST /locations/<id>/customData
Content-Type: application/json
{
   "type": "Shop"
}

Response

HTTP/1.1 201 CREATED
{
   "rel":"self",
   "href":"/locations/6b2e279d-8afd-4785-8ea4-b06739fb0f14/customData"
}

Failure

Request error; e.g. invalid JSON object:

HTTP/1.1 400 BAD REQUEST

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Location id doesn't match an existing location:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 (internal server error)

results matching ""

    No results matching ""