Skip to main content

Create definition

POST 

/custom_fields

JSON-RPC

custom_fields.create

Request​

Bodyrequired

    companies_idintegerrequired

    Partition ID.

    object_typestringrequired

    Object type.

    Possible values: [clients, packages]

    keystringrequired

    Field key, short "slug" to be used via API.

    titlestringrequired

    Field title, human-readable.

    orderinteger

    Sort order (used for ordering options in the UI).

    Possible values: >= -32768 and <= 32767

    Default value: 1

Responses​

Custom field definition object as has been stored.

Schema
    objectobject

Authorization: X-Api-Key

name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
curl -L -X POST 'https://docs.jerasoft.net/custom_fields' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Api-Key: <X-Api-Key>'
Request Collapse all
Auth
Body required
{
  "companies_id": 0,
  "object_type": "clients",
  "key": "string",
  "title": "string",
  "order": 1
}