Chilkat Online Tools

Python / Anypoint Platform APIs / Remove custom field [number] from asset

Back to Collection Items

import sys
import chilkat2

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

http = chilkat2.Http()

# Adds the "Authorization: Bearer {{token}}" header.
http.AuthToken = "{{token}}"

# resp is a CkHttpResponse
resp = http.QuickRequest("DELETE","https://domain.com/exchange/api/v1/organizations/{{organization_id}}/assets/{{organization_id}}/{{app_Id}}/1.0.1/tags/fields/uxFactor")
if (http.LastMethodSuccess == False):
    print(http.LastErrorText)
    sys.exit()

print(str(resp.StatusCode))
print(resp.BodyStr)

Curl Command

curl -X DELETE
	-H "Authorization: Bearer {{token}}"
https://domain.com/exchange/api/v1/organizations/{{organization_id}}/assets/{{organization_id}}/{{app_Id}}/1.0.1/tags/fields/uxFactor

Postman Collection Item JSON

{
  "name": "Remove custom field [number] from asset",
  "request": {
    "method": "DELETE",
    "header": [
      {
        "key": "Authorization",
        "value": "Bearer {{token}}",
        "type": "text"
      }
    ],
    "url": {
      "raw": "{{url}}/exchange/api/v1/organizations/{{organization_id}}/assets/{{organization_id}}/{{app_Id}}/1.0.1/tags/fields/uxFactor",
      "host": [
        "{{url}}"
      ],
      "path": [
        "exchange",
        "api",
        "v1",
        "organizations",
        "{{organization_id}}",
        "assets",
        "{{organization_id}}",
        "{{app_Id}}",
        "1.0.1",
        "tags",
        "fields",
        "uxFactor"
      ]
    }
  },
  "response": [
  ]
}