Skip to main content
Fetch Sub-Collections
Returns all sub-collections directly under the specified collection, owned by the authenticated user.

Path Parameters

string
required
The ID of the parent collection whose direct children should be returned.

Query Parameters

string
Service key only, and required with one: the user this request acts as. Must own the collection. A user token always acts as its own user and must not send it (400 collection/acting-user-not-allowed).

Response

Returns an array of Collection objects.

Error Responses

A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials: