POST
/
matters
/
{matterId}
/
layouts
curl --request POST \
  --url https://api.smokeball.com/matters/{matterId}/layouts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "itemId": "59791902-6280-471b-bd18-f8439ba3042f",
  "layoutDesignId": "414ab774-adce-4659-b18c-82d1b0e826a0",
  "index": 0,
  "parentItemId": "59791902-6280-471b-bd18-f8439ba3042f",
  "parentId": "Client",
  "parentIndex": 0,
  "name": "Item",
  "description": "Text describing item",
  "values": [
    {
      "key": "<string>",
      "value": "<string>",
      "state": "<any>"
    }
  ],
  "events": [
    {
      "id": "<string>",
      "appointmentId": "<string>"
    }
  ],
  "isRemoved": false
}'
{
  "id": "<string>",
  "href": "<string>",
  "relation": "<string>",
  "method": "GET"
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

matterId
string
required

Matter ID

Body

Layout matter item to add

The body is of type object.

Response

202
application/json

When request is accepted. Returns a hypermedia 'Link' object of the layout item to be created.

The response is of type object.