cURL
curl --request PUT \ --url https://api.sandbox.asapp.com/configuration/v1/structured-data-fields/{structuredDataFieldId} \ --header 'Content-Type: application/json' \ --header 'asapp-api-id: <api-key>' \ --header 'asapp-api-secret: <api-key>' \ --data '{ "name": "Promotion was offered", "categoryId": "OUTCOME", "type": "QUESTION", "question": { "question": "Did the agent offer the correct promotion?" }, "active": true }'
{ "id": "q_promotion_was_offered", "name": "Promotion was offered", "categoryId": "OUTCOME", "type": "QUESTION", "question": { "question": "Did the agent offer the correct promotion?" }, "active": true }
Update a specific structured data field specifying the id
Identifier of the structured data field
Update a structured data field
Successfully updated the structured data field.
The response is of type object.
object
Was this page helpful?