Update an export template attribute
Updates an existing export template attribute. **Publishing required.** This request stores a draft. The change becomes available in the ProductsUp platform only after you publish the export template with `POST /V1/export-templates/{id}/commit`.
Authorization
bearerAuth ProductsUp Keycloak JWT bearer token.
In: header
Path Parameters
Export template id.
Export Template Attribute 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-templates/string/attributes/string" \ -H "Content-Type: application/json" \ -d '{ "alias": "title", "mandatory": true, "type": "optional", "conditions": [], "flag": "not hidden", "isDefaultTrackingColumn": true, "isUniqueColumn": true, "order": 10, "deltaIgnore": true, "deltaKey": true, "automapIgnore": true, "description": "a new product title", "format": "String (Unicode Characters)", "examples": [ "some example" ] }'{
"data": {
"id": 995992,
"alias": "title",
"mandatory": true,
"type": "optional",
"conditions": [],
"flag": "not hidden",
"isDefaultTrackingColumn": true,
"isUniqueColumn": true,
"order": 10,
"deltaIgnore": true,
"deltaKey": true,
"automapIgnore": true,
"description": "a new product title",
"format": "String (Unicode Characters)",
"export": {
"id": 58965
},
"fieldTags": [],
"analyzerTestExports": [],
"fieldname": "test",
"examples": [
"some example"
]
}
}{
"errors": {
"message": "Request validation has encountered constraint violations.",
"errors": {
"fieldName": [
"This field was not expected."
]
}
}
}{
"errors": {
"message": "Resource access denied."
}
}How is this guide?