# Update tenant company

`PUT /public/api/v1/Tenants/{tenantId}/Companies/{companyId}`

User API · Companies · base URL `https://user-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/user/companies/update-tenant-company

**Deprecated.**

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `tenantId` | string (uuid) | yes |  |
| `companyId` | string (uuid) | yes |  |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `correlationId` | string | no | Correlation Id for the request |

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes |  |
| `businessNumber` | string or null | no |  |
| `invoiceAddress` | object | yes |  |
| `invoiceAddress.addressId` | string (uuid) or null | no |  |
| `invoiceAddress.addressType` | integer (int32) | no | Allowed values: `0`, `1`, `2`. |
| `invoiceAddress.street` | string or null | no |  |
| `invoiceAddress.street2` | string or null | no |  |
| `invoiceAddress.zipCode` | string or null | no |  |
| `invoiceAddress.city` | string or null | no |  |
| `countryCode` | string or null | no |  |
| `phoneNumber` | string or null | no |  |
| `invoiceEmail` | string or null | no |  |
| `defaultInvoiceReferenceNote` | string or null | no |  |
| `gln` | string or null | no |  |
| `companyReference` | string or null | no |  |

### Example

```json
{
  "name": "Updated - Nice food AB",
  "businessNumber": "551245-1523",
  "invoiceAddress": {
    "addressId": null,
    "addressType": 0,
    "street": "Kompanigatan 36",
    "street2": "Höhögatan 69",
    "zipCode": "666 69",
    "city": "Höhs"
  },
  "countryCode": null,
  "phoneNumber": "46623879876",
  "invoiceEmail": "example@company.io",
  "defaultInvoiceReferenceNote": "Conference room 12",
  "gln": null,
  "companyReference": null
}
```

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `company` | object or null | no |  |
| `company.id` | string (uuid) | no |  |
| `company.created` | string (date-time) | no |  |
| `company.modified` | string (date-time) | no |  |
| `company.tenantId` | string (uuid) | no |  |
| `company.name` | string or null | no |  |
| `company.businessNumber` | string or null | no |  |
| `company.addressId` | string (uuid) | no |  |
| `company.invoiceAddress` | object or null | no |  |
| `company.invoiceAddress.street` | string or null | no |  |
| `company.invoiceAddress.street2` | string or null | no |  |
| `company.invoiceAddress.zipCode` | string or null | no |  |
| `company.invoiceAddress.city` | string or null | no |  |
| `company.countryCode` | string or null | no |  |
| `company.phoneNumber` | string or null | no |  |
| `company.invoiceEmail` | string or null | no |  |
| `company.defaultInvoiceReferenceNote` | string or null | no |  |
| `company.isDeleted` | boolean | no |  |
| `company.originatingOutletId` | string (uuid) or null | no |  |
| `company.originatingOutletName` | string or null | no |  |
| `company.originatingIntegrationType` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `29`, `30`, `31`, `32`, `-2`, `-1`. |
| `company.gln` | string or null | no |  |
| `company.companyReference` | string or null | no |  |
| `company.guestGroupId` | string (uuid) or null | no |  |
| `company.integrationExternalIds` | map<string, string> or null | no |  |

#### Example

```json
{
  "company": {
    "id": "fcf85a0d-8c4d-403d-949d-c2fd34feb2ec",
    "created": "2026-10-23T15:43:54.3602029Z",
    "modified": "2026-10-23T15:43:54.360203Z",
    "tenantId": "abfccd06-422a-4872-94b5-c1d1b4fe9cf4",
    "name": "Nice food AB",
    "businessNumber": "551245-1523",
    "addressId": "d0184659-156e-4d6f-b54f-757d389d079b",
    "invoiceAddress": {
      "street": "Kompanigatan 36",
      "street2": "Höhögatan 69",
      "zipCode": "666 69",
      "city": "Höhs"
    },
    "countryCode": "SE",
    "phoneNumber": "",
    "invoiceEmail": "example@company.io",
    "defaultInvoiceReferenceNote": "Conference room 12",
    "isDeleted": false,
    "originatingOutletId": "42d0ec80-ebb4-4309-aef3-eb02106af171",
    "originatingOutletName": null,
    "originatingIntegrationType": 3,
    "gln": "1234567890123",
    "companyReference": "Example Company",
    "guestGroupId": null,
    "integrationExternalIds": {}
  }
}
```

### 400 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |
| `additionalData` | any or null | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "additionalData": null
}
```

### 404 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```

## Example request

```bash
curl -X PUT "https://user-api.ancon.io/public/api/v1/Tenants/{tenantId}/Companies/{companyId}" \
  -H "Access-Token: $ANCON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Updated - Nice food AB",
  "businessNumber": "551245-1523",
  "invoiceAddress": {
    "addressId": null,
    "addressType": 0,
    "street": "Kompanigatan 36",
    "street2": "Höhögatan 69",
    "zipCode": "666 69",
    "city": "Höhs"
  },
  "countryCode": null,
  "phoneNumber": "46623879876",
  "invoiceEmail": "example@company.io",
  "defaultInvoiceReferenceNote": "Conference room 12",
  "gln": null,
  "companyReference": null
}'
```
