View as Markdown

Edit Saved Company

PATCH/v2/companies/{id}/edits

Set or clear your workspace's own name for a saved company; every read in the workspace then shows it. A string sets the name, null or an empty string clears it, and sending the current value changes nothing. A company the workspace has not saved answers 404 NOT_SAVED. Free: spends no credits and no rate-limit units.

Path parameters

  • idstringrequired

    The GetProspect company id of a company saved in your workspace.

    Example: "696fb12757da999990585cfd"

Body parameters

  • namestringoptionalmax length: 200

    The name your workspace shows for the company (trimmed, at most 200 characters). null or an empty string clears the edit, so the database name shows again.

    Example
    {
      "name": "Intercom (EMEA)"
    }

Responses

  • 200 The company id and its edits after the write (edits is {} once cleared).
  • 400 Invalid request (VALIDATION_ERROR): an unknown field (payload.code), a malformed id or name, or an empty body (payload.field names the field).
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 404 The company is not saved in your workspace (NOT_SAVED).
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.