Productsup

Update an export custom form field

Updates a custom form field of an export template. **Publishing required.** This request stores a draft. The change becomes available in the Productsup platform only after you publish the export template with `POST /V2/export-templates/{id}/publish`.

PATCH
/V1/export/{exportId}/export-custom-form-field/{id}
AuthorizationBearer <token>

Productsup Keycloak JWT bearer token.

In: header

Path Parameters

exportId*string

Export id.

id*string

Export Custom Form Field id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://export-template-api.productsup.com/V1/export/string/export-custom-form-field/string" \  -H "Content-Type: application/json" \  -d '{    "name": "type",    "caption": "Type",    "type": "select",    "placeholder": "example type",    "data": "{\'options\':[{\'value\':\'yes\',\'caption\':\'yes\'},{\'value\':\'no\',\'caption\':\'no\'}]}",    "trigger": "ADD_NAME_HEADER",    "order": 1  }'
{
  "data": {
    "id": 2654,
    "name": "type",
    "caption": "Type",
    "type": "select",
    "placeholder": "example type",
    "data": "{'options':[{'value':'yes','caption':'yes'},{'value':'no','caption':'no'}]}",
    "trigger": "ADD_NAME_HEADER",
    "order": 1,
    "export": {
      "id": 58852
    }
  }
}
{
  "errors": {
    "message": "Resource access denied."
  }
}
{
  "errors": {
    "message": "Export Custom Form Field with id 123 not found."
  }
}