Chilkat Online Tools

Unicode C++ / Zoho CRM REST APIs / Calls

Back to Collection Items

void ChilkatSample(void)
    {
    json.UpdateString(L"tags[0].id",L"{{tag_id}}");    json.UpdateString(L"tags[0].name",L"Cold Call");    json.UpdateString(L"tags[1].id",L"{{tag_id}}");    json.UpdateString(L"tags[1].name",L"Research Calls");    http.put_AuthToken(L"<access_token>");    json.EmitSb(sbRequestBody);    success = http.HttpSb(L"PUT",L"https://domain.com/crm/v2.1/settings/tags?module=Calls",sbRequestBody,L"utf-8",L"application/json",resp);
    }

Curl Command

curl -X PUT
	-H "Authorization: Bearer <access_token>"
	-d '{
    "tags": [
        {
            "id": "{{tag_id}}",
            "name": "Cold Call"
        },
        {
            "id": "{{tag_id}}",
            "name": "Research Calls"
        }
    ]
}'
https://domain.com/crm/v2.1/settings/tags?module=Calls

Postman Collection Item JSON

{
  "name": "Calls",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{access-token}}",
          "type": "string"
        }
      ]
    },
    "method": "PUT",
    "header": [
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"tags\": [\n        {\n            \"id\": \"{{tag_id}}\",\n            \"name\": \"Cold Call\"\n        },\n        {\n            \"id\": \"{{tag_id}}\",\n            \"name\": \"Research Calls\"\n        }\n    ]\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{api-domain}}/crm/v2.1/settings/tags?module=Calls",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "v2.1",
        "settings",
        "tags"
      ],
      "query": [
        {
          "key": "module",
          "value": "Calls"
        }
      ]
    },
    "description": "To update tags."
  },
  "response": [
  ]
}