Skip to main content

List the locations.

GET/api/v1/locationslocations:read

Locations in ID order. project_id and parent_id list the locations of a project or under a parent (repeat for several); roots_only lists the top-level locations. Needs View Locations.

Scopelocations:read
AsynchronousNo
MCP toollist_locations
Portal permissionsview_locations
Pagingkeyset
Default orderlocation_id
Sort fieldslocation_id
Filtersproject_id, project_id_is_null, parent_id, parent_id_is_null, roots_only

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
project_idqueryarray of stringOptional
project_id_is_nullquerybooleanOptional
parent_idqueryarray of stringOptional
parent_id_is_nullquerybooleanOptional
roots_onlyqueryarray of booleanOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of LocationRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Location​

FieldTypeRequiredDescription
codestring or nullRequired
descriptionstring or nullRequired
is_activeboolean or nullRequiredWhether the location can be used.
location_idstringRequired
location_typestring or nullRequiredThe location type's name; null when none is set.
parent_location_idstring or nullRequiredThe parent location; null for a top-level location.
pathstring or nullRequiredThe location's ancestors' descriptions and its own, joined with ->.
projectobject or nullRequired