Add a document to favorites in Dynatrace with the Document API, marking it for the calling user when the document is accessible through ownership or sharing.
| POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/document/v1/documents/{id}:favorite |
You provide the document id in the path to mark that document as a personal favorite. The operation returns no content, requires the document to be accessible to you, and does nothing if it is already a favorite.
To execute this request, you need a platform token or OAuth access token with document:documents:read scope. To learn how to obtain and use it, see Tokens and authentication.
The request doesn't provide any configurable parameters.
| Code | Description |
|---|---|
| 204 | The document has been marked as a favorite. |
| 401 | - |
| 403 | - |
| 404 | - |
| 500 | - |
| 503 | - |
| default | - |