Gamma API

Update a model folder

PATCH
/api/projects/{projectId}/models/folders/{folderId}

Rename it, or move it: parentId null to the top level, or under any folder that is not inside it (400 otherwise).

Who may call it: Anyone on the project whose permission profile allows model.update. API keys: yes, given model.update 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.

folderId*string

Request Body

application/json
  1. body
name?string
Length1 <= length <= 200
parentId?|

The folder it goes in; null or left out for the top level.

Response Body

OK.

application/json
  1. response
folder*

A folder of models, which may hold others.

Example Request
curl -X PATCH 'http://localhost:3000/api/projects/string/models/folders/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "folder": {    "id": "string",    "parentId": "string",    "name": "string",    "createdAt": "2019-08-24T14:15:22Z"  }}