Pinning a file programmatically
To pin a file, send a POST request to the myfavorites feed.Table 1. Atom API request details
Method URI Input and output representations POST /basic/api/myfavorites/documents/feed File Atom document You can provide the following parameter.
Table 2. Input parameter
Parameter Description itemId String. Uuid that uniquely identifies the document. The uuid is defined in the <td:uuid> element in the Atom entry document of the file.
Input
Provide either an Atom document representing the file as input to the request or identify the file by providing the itemId parameter on the request.
Output
None.Returned HTTP headers
HTTP/1.1 204 No Content
Indicates that the versions were successfully removed from the collection.
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 403 Forbidden
- HTTP/1.1 404 Not Found
Parent topic
Work with pinned files
});