ModelsModels
Set a model's tags
PUT
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.
cookie
gamma.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.
projectId*stringThe project's id.
modelId*stringapplication/json- body
tagIds*array<>Every tag the model carries from now on; [] takes them all off.
Items
items <= 100OK.
application/json- 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" ] }}