Archive deal
Deals
Archive deal
DELETE /deals/ — archive an object
DELETE
Archive deal
Endpoint
/deals/{dealId}Authentication: Bearer JWT Path parameter:
dealId — object ID
DELETE archives the object. The record is kept and archived is set to an ISO timestamp.
Response fields after archive
The 200 response uses default properties plusarchived_by:
| Property | Description |
|---|---|
id | Internal object ID |
deal_name | Custom or system field (flat on the object) |
pipeline | Custom or system field (flat on the object) |
deal_stage | Custom or system field (flat on the object) |
deal_owner | Assigned owner email |
external_id | External identifier (nullable) |
archived | false when active; ISO timestamp when archived |
archived_by | User or API client ID who archived the object (only when archived; added automatically) |
| Field | Value when archived |
|---|---|
archived | ISO timestamp (no longer false) |
archived_by | ID of the user or API client who archived the object |
created_at and updated_at are always included in every response.Response example
Errors
| Status | When |
|---|---|
400 | Missing dealId in path |
401 | Missing account context |
404 | Object not found or already archived |
Authorizations
Bearer JWT with valid account context.
Path Parameters
Object identifier
Response
Archived object
Assigned owner email
Example:
"jane@example.com"
false when active, or ISO timestamp when archived
