Skip to content
Reviactyl v26 has been released!
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Location

Return all the locations currently registered on the Panel

get
Responses
200Success
application/json
itemsanyOptional
get/locations
GET /api/application/locations HTTP/1.1
Host: reviactyl.test
Accept: */*
[]

Store a new location on the Panel and return an HTTP/201 response code with the new location attached

post
Body
shortstring · min: 1 · max: 60Required
longstring · min: 1 · max: 191 · nullableOptional
Responses
200Success
application/json
objectOptional
post/locations
POST /api/application/locations HTTP/1.1
Host: reviactyl.test
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "short": "text",
  "long": null
}
{}

Return a single location

get
Path parameters
locationintegerRequired

The location ID

Responses
200Success
application/json
itemsanyOptional
get/locations/{location}
GET /api/application/locations/{location} HTTP/1.1
Host: reviactyl.test
Accept: */*
[]

Delete a location from the Panel

delete
Path parameters
locationintegerRequired

The location ID

Responses
204

No content

No content

delete/locations/{location}
DELETE /api/application/locations/{location} HTTP/1.1
Host: reviactyl.test
Accept: */*

No content

Update a location on the Panel and return the updated record to the user

patch
Path parameters
locationintegerRequired

The location ID

Responses
200Success
application/json
itemsanyOptional
patch/locations/{location}
PATCH /api/application/locations/{location} HTTP/1.1
Host: reviactyl.test
Accept: */*
[]

Last updated

Was this helpful?