A
A
algrandeth2021-12-16 09:50:07
API
algrandeth, 2021-12-16 09:50:07

How to add information to custom_fields in amocrm via api/v4?

The problem is this. We have some new custom fields and I need to update some deals by filling in these fields. I make a patch request to them (documentation, editing deals) - I get 200, but nothing changes in the end. I send the request like this:

PATCH /api/v4/leads

[
  {
    "id": 56440444,
    "custom_field_values": [
      {
        "field_id": 1778770,
        "values": [
          {
            "value": 10
          }
        ]
      }
    ]
  },
  {
    "id": 56487008,
    "custom_field_values": [
      {
        "field_id": 1961340,
        "values": [
          {
            "value": 0
          }
        ]
      }
    ]
  },
  {
    "id": 56487018,
    "custom_field_values": [
      {
        "field_id": 1961340,
        "values": [
          {
            "value": 0
          }
        ]
      }
    ]
  }
]


I tried to send it this way, only via POST - nothing has changed either. How can I add values ​​to empty fields? I didn't find anything in the documentation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Chmykh, 2021-12-16
@algrandeth

custom_fields_values _ _

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question