Gamma API
ProgressObjects

Add a metadata column

POST
/api/projects/{projectId}/metadata-columns

A model property to list beside the elements. Refused with 409 when it is a column already.

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
category*string

The property's category.

Lengthlength <= 500
name*string

The property's name.

Length1 <= length <= 500
unit?|
Defaultnull

Response Body

Created.

application/json
  1. response
column*

A model property the project lists beside its elements.

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/metadata-columns' \  -H 'Content-Type: application/json' \  -d '{  "category": "string",  "name": "string"}'
Example Response
{  "column": {    "id": "string",    "category": "string",    "name": "string",    "unit": "string"  }}