Find an object by path

post/paths

Find an object, if it exists, by path. The client provides an ordered list of parent folder names, the object name, and the object content type and, if needed, the matching object type definition name (typeDefName). By default, returns a common summary representation of the object, but the client can request the full member representation of a subfolder or member object by using an appropriate Accept header.

Request Samples

Response Samples

1{
2 "creationTimeStamp": "2022-06-17T16:37:34.817185Z",
3 "createdBy": "sas.themes",
4 "modifiedTimeStamp": "2022-06-17T16:37:34.817186Z",
5 "modifiedBy": "sas.themes",
6 "version": 2,
7 "id": "6d252540-07d7-49ef-b508-b3b7d9a505f1",
8 "name": "SAS Theme Designer",
9 "description": "SAS Theme Designer folder",
10 "type": "folder",
11 "links": [
12 {
13 "method": "GET",
14 "rel": "self",
15 "href": "/folders/folders/6d252540-07d7-49ef-b508-b3b7d9a505f1",
16 "uri": "/folders/folders/6d252540-07d7-49ef-b508-b3b7d9a505f1",
17 "type": "application/vnd.sas.content.folder"
18 },
19 {
20 "method": "GET",
21 "rel": "alternate",
22 "href": "/folders/folders/6d252540-07d7-49ef-b508-b3b7d9a505f1",
23 "uri": "/folders/folders/6d252540-07d7-49ef-b508-b3b7d9a505f1",
24 "type": "application/vnd.sas.summary"
25 }
26 ]
27}

Request Body

The set of parent names, the object name, the object content type, and optionally, the object type definition name.

A representation of a path request.

NameTypeRequiredDescription
items
array [string]
true

An ordered list of parent folder names, with the desired object's name at the end of the list. Required.

contentType
string
true

The content type of the object to return. Must match the persisted content type of the Member entry. This is usually not a media type. Use "folder" when requesting root or subfolders. Required.

typeDefName
string
false

The type definition name of the member being requested. Must match the persisted type definition name (if any) of the Member entry. Omit for folders and members that do not have a type definition name.

version
integer
false

This media type's schema version number. This representation is version 1.

Responses

StatusMeaningDescription
200OK

The object was found and returned in the requested representation.

Schema
400Bad Request

The request was invalid. The request body was malformed or is absent.

Schema
404Not Found

No object with the specified type exists at the requested path.

Schema