Gamma API
ModelsModels

Set a model's tags

PUT
/api/projects/{projectId}/models/{modelId}/tags

Replaces the tags the model carries with tagIds, each one of the project's tags (GET …/tags). Refused with 400 when one is not.

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.

modelId*string

Request Body

application/json
  1. body
tagIds*array<>

Every tag the model carries from now on; [] takes them all off.

Itemsitems <= 100

Response Body

OK.

application/json
  1. response
model*

A BIM model. format, sizeBytes, fileKey, converted and conversion describe its current version.

Example Request
curl -X PUT 'http://localhost:3000/api/projects/string/models/string/tags' \  -H 'Content-Type: application/json' \  -d '{  "tagIds": [    "string"  ]}'
Example Response
{  "model": {    "id": "string",    "projectId": "string",    "folderId": "string",    "name": "string",    "format": "glb",    "sizeBytes": -9007199254740991,    "fileKey": "string",    "version": -9007199254740991,    "createdById": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "converted": {      "at": "2019-08-24T14:15:22Z",      "jobId": "string"    },    "conversion": {      "status": "string",      "jobId": "string",      "at": "2019-08-24T14:15:22Z"    },    "tagIds": [      "string"    ]  }}