- Empresa
- Atualizar empresa
Empresa
Atualizar empresa
Atualizar empresa
PUT
/organizations/change/{organizationId}
curl --request PUT \
--url https://api.treeunfe.com.br/api/v1/organizations/change/{organizationId} \
--header 'x-api-key: <api-key>' \
--header 'x-api-key: <x_api_key>' \
--header 'Content-Type: application/json' \
--data '{
"xFant": "<string>"
}'
curl --request PUT \
--url https://api.treeunfe.com.br/api/v1/organizations/change/{organizationId} \
--header 'x-api-key: <api-key>' \
--header 'x-api-key: <x_api_key>' \
--header 'Content-Type: application/json' \
--data '{
"xFant": "<string>"
}'Atualiza dados cadastrais da empresa. Envie só os campos que mudaram.
Autenticação
x-api-key
required
string
API Key da empresa.
Parâmetros de rota
organizationId
required
string
ID da empresa. Veja em Empresa atual.
Body
application/json
xFant
string
Nome fantasia.
Respostas
| Status | Descrição |
|---|---|
200 | Empresa atualizada. |
400 | Body inválido. |
401 | x-api-key ausente ou inválida. |
curl -X PUT "https://api.treeunfe.com.br/api/v1/organizations/change/ORGANIZATION_ID" \
-H "x-api-key: SUA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"xFant": "EMPRESA EXEMPLO"
}'
curl -X PUT "https://api.treeunfe.com.br/api/v1/organizations/change/ORGANIZATION_ID" \
-H "x-api-key: SUA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"xFant": "EMPRESA EXEMPLO"
}'
curl --request PUT \
--url https://api.treeunfe.com.br/api/v1/organizations/change/{organizationId} \
--header 'x-api-key: <api-key>' \
--header 'x-api-key: <x_api_key>' \
--header 'Content-Type: application/json' \
--data '{
"xFant": "<string>"
}'
curl --request PUT \
--url https://api.treeunfe.com.br/api/v1/organizations/change/{organizationId} \
--header 'x-api-key: <api-key>' \
--header 'x-api-key: <x_api_key>' \
--header 'Content-Type: application/json' \
--data '{
"xFant": "<string>"
}'