API - Trying to update Deployment Status in Custom Fields via powershell

Hi,

I am trying to update Deployment Status in Custom Fields via powershell and I am using below JSON payload for that but I am unsuccessful in doing that, however I am able to update all other fields successfully except that. Please help.

"custom_fields_values_attributes": [
       {
                 "id": ####,
                 "custom_field_id": ######,
                 "value": "Repairs"
       }
 ],
"custom_fields_values": {
       "custom_fields_value": [
              {
                        "name": "Deployment Status",
                         "value": "Repairs"
               }
]
}

Parents
  • Hello! At the moment, the Custom Field (and its values) has to already exist in the system. As far as I've been able to find there's no way to update the values in the Custom Field except from the web GUI. 

    For updating a custom field on an incident, the payload should be like this:

    {
      "incident": {
        "id"12341234,
        "custom_fields_values": {
          "custom_fields_value": [
            {
              "name""Deployment Status",
              "value""Repairs"
            },
            {
              "name""A different custom field",
              "value""Some value"
            }
          ]
        }
      }
    }

Reply
  • Hello! At the moment, the Custom Field (and its values) has to already exist in the system. As far as I've been able to find there's no way to update the values in the Custom Field except from the web GUI. 

    For updating a custom field on an incident, the payload should be like this:

    {
      "incident": {
        "id"12341234,
        "custom_fields_values": {
          "custom_fields_value": [
            {
              "name""Deployment Status",
              "value""Repairs"
            },
            {
              "name""A different custom field",
              "value""Some value"
            }
          ]
        }
      }
    }

Children
No Data