curl --request POST \
--url https://api.chartbrew.com/team \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"showBranding": true,
"allowReportRefresh": true,
"allowReportExport": true
}'
{
"id": 123,
"name": "<string>",
"TeamRoles": [
{
"id": 123,
"team_id": 123,
"user_id": 123,
"role": "<string>",
"projects": [
"<string>"
],
"canExport": true
}
],
"showBranding": true,
"allowReportRefresh": true,
"allowReportExport": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Create a new team
curl --request POST \
--url https://api.chartbrew.com/team \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"showBranding": true,
"allowReportRefresh": true,
"allowReportExport": true
}'
{
"id": 123,
"name": "<string>",
"TeamRoles": [
{
"id": 123,
"team_id": 123,
"user_id": 123,
"role": "<string>",
"projects": [
"<string>"
],
"canExport": true
}
],
"showBranding": true,
"allowReportRefresh": true,
"allowReportExport": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Team created successfully
The response is of type object
.