curl --location --request PUT 'http://localhost:3005/api/teams/acme' \
--header 'Accept: application/json' \
--header 'Authorization: Token <token>' \
--data '{
"name": "ACME Inc.",
"slug": "acme"
}'
{
"data": {
"id": 1,
"name": "ACME Inc.",
"slug": "acme",
"logo": null,
"createdAt": "2023-07-02T16:07:08.469Z",
"updatedAt": "2023-07-02T16:07:08.469Z"
}
}
Update a team
curl --location --request PUT 'http://localhost:3005/api/teams/acme' \
--header 'Accept: application/json' \
--header 'Authorization: Token <token>' \
--data '{
"name": "ACME Inc.",
"slug": "acme"
}'
{
"data": {
"id": 1,
"name": "ACME Inc.",
"slug": "acme",
"logo": null,
"createdAt": "2023-07-02T16:07:08.469Z",
"updatedAt": "2023-07-02T16:07:08.469Z"
}
}
curl --location --request PUT 'http://localhost:3005/api/teams/acme' \
--header 'Accept: application/json' \
--header 'Authorization: Token <token>' \
--data '{
"name": "ACME Inc.",
"slug": "acme"
}'
{
"data": {
"id": 1,
"name": "ACME Inc.",
"slug": "acme",
"logo": null,
"createdAt": "2023-07-02T16:07:08.469Z",
"updatedAt": "2023-07-02T16:07:08.469Z"
}
}