# Edit Saved Company `PATCH https://api.getprospect.com/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. ## Authentication Pass your API key in the `x-api-key` header. ## Body parameters - `name` (string, optional, max 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)"}` ## Path parameters - `id` (string, required): The GetProspect company id of a company saved in your workspace. Example: `"696fb12757da999990585cfd"` ## Example request ```bash curl --request PATCH \ --url https://api.getprospect.com/v2/companies/696fb12757da999990585cfd/edits \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data ' { "name": "Intercom (EMEA)" } ' ``` ## Response 200 The company id and its edits after the write (`edits` is `{}` once cleared). ```json { "success": true, "data": { "id": "696fb12757da999990585cfd", "edits": { "name": "Intercom (EMEA)" } }, "metadata": { "timestamp": "2026-10-02T12:27:10.726Z" } } ``` ## Response 400 Invalid request (`VALIDATION_ERROR`): an unknown field (`payload.code`), a malformed `id` or `name`, or an empty body (`payload.field` names the field). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-02T12:27:10.726Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "title is not a field of this request", "payload": { "field": "title", "code": "unknown_field", "received_value": "Acme", "received_type": "string", "allowed_fields": [ "name" ] } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 404 The company is not saved in your workspace (`NOT_SAVED`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-02T12:27:10.726Z" }, "errors": [ { "name": "NOT_SAVED", "message": "This company is not saved in your workspace." } ] } ``` ## Response 500 Unexpected server error.