Build with Estii

Archive a deal

POST
/v1/deal/{id}/archive

Requires read_write scope.

Authorization

bearerAuth
AuthorizationBearer <token>

A personal access token (estp_) or space API key (ests_).

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/deal/string/archive" \  -H "Content-Type: application/json" \  -d '{    "space": "string"  }'
{  "deal": {    "id": "string",    "name": "string",    "status": "string",    "updated_at": 0,    "space_id": "string",    "currency": "string",    "price": 0,    "margin": 0,    "probability": 0,    "archived": true,    "created_at": 0,    "owner_email": "string",    "description": "string",    "target_price": 0,    "target_margin": 0,    "start": 0,    "due": 0,    "closed_reason": "string",    "pending_at": 0,    "requested_by_email": "string",    "requested_to_email": "string"  }}
{  "message": "string"}
{  "message": "string"}
{  "message": "string"}
{  "message": "string"}