Gamma API
ProjectsTags

Create a tag

POST
/api/projects/{projectId}/tags

Added last in the project's order.

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.

Request Body

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

Response Body

Created.

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 POST 'http://localhost:3000/api/projects/string/tags' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "color": "string"}'
Example Response
{  "tag": {    "id": "string",    "name": "string",    "color": "string"  }}