Skip to main content

GET Folders Select List

Overview


The following table contains important information about the GET method in regards to retrieving a select list of folders. This endpoint can be scoped to the current project, a configurable set of projects (used by playlist scoping), or all projects in the organization.

GET Folders Select List
MethodGET
URL or Endpoint/api/projects/projectId/folders/select-list
HeadersAuthorization
ParametersprojectId, includeProjects, includeAllProjects
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.

The description of the query parameters is as follows:

Query Parameter NameMandatoryTypeDescription
includeProjectsNoarray[string]List of project public IDs whose folders should be included in the select list. Use this to scope folder selection to a configurable set of projects (for example, the projects selected in a playlist's project scope). Ignored when includeAllProjects is set to true.
includeAllProjectsNobooleanWhen true, returns folders from every project the caller has access to in the organization. When false (default), the result is limited to the current project plus any projects listed in includeProjects.

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": [
{
"parentId": 0,
"projectId": "{projectId}",
"id": 0,
"name": "{name}",
"value": "{value}",
"description": "{description}"
}
],
"resultInfo": "{resultInfo}",
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Top-Level Properties

Field NameTypeDescription
successbooleanIf the response is successful it will return true. Otherwise will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from back-end.
resultarray[object]Returns the list of folder select-list items. See result Properties below.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns the HTTP Status Code.

result Properties

Field NameTypeDescription
parentIdinteger or nullIdentifier of the parent folder, or null when the folder is at the root of its project.
projectIdstringPublic identifier of the project that owns the folder. Useful when the result spans multiple projects (when includeProjects or includeAllProjects is used).
idintegerUnique identifier of the folder.
namestringDisplay name of the folder.
valuestringSelect-list value associated with the folder.
descriptionstringOptional description of the folder.

If the action is successful, the service sends back an HTTP 200 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed