Cerclen API
Requests

Create a request

The owning side's admins file requests at once. An editor's key is refused — 403 `proposal_required`: editors propose requests for an admin to file (ADR-0059), which the API does not yet carry — as is anyone else's, 403 `cannot_create_request`.

POST
/api/v1/deals/{deal_id}/requests

The owning side's admins file requests at once. An editor's key is refused — 403 proposal_required: editors propose requests for an admin to file (ADR-0059), which the API does not yet carry — as is anyone else's, 403 cannot_create_request.

Authorization

ApiKey
headerAuthorizationBearer <token>

An API key from your organization's API Keys page in Cerclen.

Path Parameters

deal_id*Deal Id
Formatuuid

Request Body

application/json
  1. body

A new request, filed at once by one of the deal's admins (an editor proposes one with POST /deals/{deal_id}/proposals instead). Its number is the next under its category — 3.25 under category 3 — and never changes, nor is a deleted request's number given out again.

assignee_id?|

A person id from the deal's people.

body?Body

The request in full, in Markdown.

Lengthlength <= 20000
Default""
category?|

The category by name instead; the old values business, legal, tax, accounting, technology and human_resources still name the defaults.

category_id?|

One of the deal's categories (see the deal). Neither this nor category: General Business.

due_date?|null
priority?Priority

A request's urgency. Ordering for display is client-side (never ORDER BY).

Default"medium"
Value in"low""medium""high"
requester?|

The advisor firm raising it; null for the Financial Sponsor.

title*Title
Match\S
Length1 <= length <= 500

Response Body

Successful Response

application/json
  1. response

A request on the deal's list.

allowed_statuses*array<>

The statuses you may move it to from here.

assignee_id*|

The person id of whoever is to answer it.

body*Body

The request in full, in Markdown.

can*

What you may do to this request.

category*Category

That category's name.

category_id*Category Id

The deal's category it is filed under; fixed once filed.

created_at*Created At
Formatdate-time
due_date*|

A calendar day in the deal's time zone.

files*array<>

Every file and link given in answer to it.

id*Id
latest_answer*|null
number*Number

Its number on the list, such as 3.2: the category's index, then the next number under it. Allocated, and never changes.

priority*Priority

A request's urgency. Ordering for display is client-side (never ORDER BY).

Value in"low""medium""high"
requester*|

The advisor firm raising it; null for the Financial Sponsor.

status*RequestStatus
Value in"open""partial""complete"
status_changed_at*|null
title*Title
updated_at*Updated At
Formatdate-time
curl -X POST 'https://app.cerclen.com/api/v1/deals/497f6eca-6276-4993-bfeb-53cbbbba6f08/requests' \  -H "Authorization: Bearer $CERCLEN_KEY" \  -H 'Content-Type: application/json' \  -d '{  "category_id": "01a1d6c0-5f4e-7c1b-9a2d-3e4f5a6b7c8e",  "title": "Customer contracts over $250k"}'
{  "allowed_statuses": [    "open"  ],  "assignee_id": "string",  "body": "string",  "can": {    "answer": true,    "assign": true,    "change_status": true,    "edit": true  },  "category": "string",  "category_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "due_date": "2019-08-24",  "files": [    {      "content_type": "string",      "downloadable": true,      "kind": "file",      "name": "string",      "size": 0,      "url": "string",      "version_id": "string"    }  ],  "id": "string",  "latest_answer": {    "author": {      "email": "string",      "id": "string",      "name": "string"    },    "message_id": "string",    "partial": true,    "posted_at": "2019-08-24T14:15:22Z",    "preview": "string",    "source": "email"  },  "number": "string",  "priority": "low",  "requester": "string",  "status": "open",  "status_changed_at": "2019-08-24T14:15:22Z",  "title": "string",  "updated_at": "2019-08-24T14:15:22Z"}