curl --request PUT \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/table/{tableName}/columns/{columnName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"dataType": "<string>",
"displayName": "<string>",
"defaultValue": "<string>",
"isNotNull": true,
"isUnique": true
}'
[
{
"id": "<string>",
"name": "<string>",
"dataType": "<string>",
"displayName": "<string>",
"defaultValue": "<string>",
"isNotNull": true,
"isUnique": true
}
]
curl --request PUT \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/table/{tableName}/columns/{columnName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"dataType": "<string>",
"displayName": "<string>",
"defaultValue": "<string>",
"isNotNull": true,
"isUnique": true
}'
[
{
"id": "<string>",
"name": "<string>",
"dataType": "<string>",
"displayName": "<string>",
"defaultValue": "<string>",
"isNotNull": true,
"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
This class represents a ColumnRequest. It contains the name, data type, display name, default value, not null and unique status of the column request.
OK
The response is of type object[]
.