Gamma API
ProgressObjects

Add an attribute column

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

An attribute to list beside the elements. Refused with 400 for one the project does not have, and 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 __Host- 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
definitionId*string

The attribute.

Length1 <= length <= 100

Response Body

Created.

application/json
  1. response
column*

An attribute the project lists beside its elements.

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/metadata-columns/attributes' \  -H 'Content-Type: application/json' \  -d '{  "definitionId": "string"}'
Example Response
{  "column": {    "id": "string",    "attribute": {      "id": "string",      "name": "string",      "type": "text",      "options": [        {          "id": "string",          "name": "string",          "parentId": "string"        }      ],      "standard": "location",      "gone": true,      "provider": {        "id": "string",        "name": "string"      }    }  }}