Gamma API
ProgressObjects

Restore objects from the trash

POST
/api/projects/{projectId}/objects/restore

With their statuses. Refused with 404 unless every id is in the project's trash.

Who may call it: Anyone on the project whose permission profile allows object.delete. API keys: yes, given object.delete for this project.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Request Body

application/json
  1. body
ids*array<>

Tracked elements' ids (not GlobalIds).

Items1 <= items <= 500

Response Body

Done; no content.

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/objects/restore' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "string"  ]}'
Example Response
Empty