Example request
PATCH https://api.jupiter-erp.com/api/account/contact-fields/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/contact-fields/example-id' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"key": "string",
"name": "string",
"description": "string",
"type": "string",
"select_values": [
"string"
],
"default_value": null
}'Parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | yes | — |
Request body
Optional
| Field | Type | Description |
|---|---|---|
| default_value | object | default value |
| description | string | — |
| key | string | — |
| name | string | — |
| ordering | integer | — |
| select_values | string[] | array Elements string |
| type | string | — |
Example request
{
"key": "string",
"name": "string",
"description": "string",
"type": "string",
"select_values": [
"string"
],
"default_value": null
}Responses
200OK
ModelContactField
| Field | Type | Description |
|---|---|---|
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. |
| default_value | object | default value |
| description | string | — |
| id* | integer | — |
| key* | string | — |
| name* | string | — |
| ordering | integer | — |
| select_values | string[] | array Elements string |
| type* | string | — |
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. |
Example response
{
"id": 0,
"key": "string",
"name": "string",
"description": "string",
"type": "string",
"select_values": [
"string"
]
}ContactFields