Gamma API
ProjectsTags

Update a tag

PATCH
/api/projects/{projectId}/tags/{tagId}

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
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.

tagId*string

Request Body

application/json
  1. body
name?string
Length1 <= length <= 50
color?string
Match^#[0-9a-f]{6}$

Response Body

OK.

application/json
  1. response
tag*

A label a project's models are filed by. Which models carry it is each model's tagIds; deleting it takes it off them.

Example Request
curl -X PATCH 'http://localhost:3000/api/projects/string/tags/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "tag": {    "id": "string",    "name": "string",    "color": "string"  }}