Companies

Update a single field value on a Company

Changed on
⚠️ This endpoint is currently in BETA

Update a single field value on a company.

post/v2/companies/{companyId}/fields/{fieldId}

Request

  • Base URL
    https://api.affinity.co
  • URL
    https://api.affinity.co/v2/companies/{companyId}/fields/{fieldId}
  • Auth
    HTTP bearer

Path parameters

companyIdinteger required

Company ID

fieldIdstring required
Example:affinity-data-location

Field ID

Request body

Example request

{
  "value": {
    "type": "company-multi",
    "data": [
      {
        "id": 1
      },
      {
        "id": 2
      }
    ]
  }
}

Response

No Content

Changes

    • info

      added company-multi company datetime dropdown dropdown-multi number number-multi location location-multi person person-multi ranked-dropdown filterable-text filterable-text-multi text discriminator mapping keys to the request property

    • info

      added authentication authorization bad-request conflict method-not-allowed not-acceptable not-found not-implemented rate-limit server timeout unprocessable-entity unsupported-media-type validation discriminator mapping keys to the / response property for the response status

    • info

      added bad-request validation discriminator mapping keys to the / response property for the response status