curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/table/{tableName}/columns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"name": "num19"
},
{
"dataType": "bigint",
"displayName": "num18",
"defaultValue": 3,
"isUnique": true,
"name": "num18"
}
]'
[
{
"name": "num19",
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"isNotNull": false,
"isUnique": false
},
{
"name": "num18",
"dataType": "bigint",
"displayName": "num18",
"defaultValue": "3",
"isNotNull": false,
"isUnique": true
}
]
curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/table/{tableName}/columns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"name": "num19"
},
{
"dataType": "bigint",
"displayName": "num18",
"defaultValue": 3,
"isUnique": true,
"name": "num18"
}
]'
[
{
"name": "num19",
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"isNotNull": false,
"isUnique": false
},
{
"name": "num18",
"dataType": "bigint",
"displayName": "num18",
"defaultValue": "3",
"isNotNull": false,
"isUnique": true
}
]
Use the Authorization header with the value 'Bearer <apiKey>' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Column Request
This class represents a ColumnRequest. It contains the name, data type, display name, default value, not null and unique status of the column request.
Column added successfully
The response is of type object
.