POST
/
companies
/
{id}
curl --request POST \
  --url http://staging.api.commenda.io/api/v1/companies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Initech Updated"
}'
{
  "id": "<string>",
  "name": "Initech"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the company to update.

Body

application/json
name
string

The updated name of the company

Example:

"Initech Updated"

Response

200
application/json
Company updated successfully
id
string

Unique identifier for this company.

name
string

The company's name.

Example:

"Initech"