Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Get location

Resolve the requested location or the server default location.

GET/api/location
Query parameters
locationobject | any
Responses
200Location.Info
directorystringrequired
workspaceIDobject
Show properties
object
projectobjectrequired
Show properties
idstringrequired
directorystringrequired
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
Request
curl -X GET "/api/location"
Response
{
  "directory": "string",
  "workspaceID": {},
  "project": {
    "id": "string",
    "directory": "string"
  }
}