PATCH/desk/api/v2/customfields/{id}.json

Update a customfield.

Update all the given properties for this resource. Any omitted properties will be unchanged.

Path Params

  • Name
    id
    Type
    integer
    required
    Description

Body Params

    • Name
      customfield
      Type
      object
      Description
      CustomField represents a CustomField.
    • Name
      included
      Type
      object
      Description
      Included allows adding referenced objects on the API response. The included keys should map to the `types` in the Relationship slices/objects.

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

    Examples

    200 OK

    CustomFieldAPIBody
    {  "customfield": {    "addToNewInboxes": true,    "agentLabel": "string",    "agentRequired": true,    "apps": [      {        "delete": true,        "id": 0,        "meta": {},        "type": 0      }    ],    "createdAt": "2024-07-26T20:26:26.473Z",    "createdBy": {      "delete": true,      "id": 0,      "meta": {},