Gamma API
ProjectsTags

Reorder tags

PUT
/api/projects/{projectId}/tags/order

Refused with 409 when ids is not exactly the project's tags — a list read before another change is not half applied.

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
ids*array<>

Every tag's id, each once, in the new order.

Response Body

OK.

application/json
  1. response
tags*array<>
Example Request
curl -X PUT 'http://localhost:3000/api/projects/string/tags/order' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "string"  ]}'
Example Response
{  "tags": [    {      "id": "string",      "name": "string",      "color": "string"    }  ]}