API Documentation
Update action
PUT
/
api
/
v1
/
actions
/
{id}
Update action
Copy
curl --request PUT \
--url https://api.elemente.ai/api/v1/actions/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Order checking",
"description": "checking customer order status",
"waitingMessage": "Hold on while i check your order",
"method": "GET",
"url": "https://api.elemente.ai/order-phone-number?phone={phone}",
"headers": [
{
"key": "X-Shopify-Access-Token",
"value": "{{shopify-access-key}}"
}
],
"queryParams": [
{
"key": "phone",
"value": "{phone}"
}
],
"inputVariables": [
{
"name": "phone",
"description": "Phone number",
"required": true,
"dataType": "string"
}
],
"id": "5464980934889674"
}'
Copy
{
"workspace": "354736587945343",
"type": "<string>",
"name": "Order checking",
"description": "checking customer order status",
"waitingMessage": "Hold on while i check your order",
"method": "GET",
"url": "https://api.elemente.ai/order-phone-number?phone={phone}",
"headers": [
{
"key": "X-Shopify-Access-Token",
"value": "{{shopify-access-key}}"
}
],
"queryParams": [
{
"key": "phone",
"value": "{phone}"
}
],
"inputVariables": [
{
"name": "phone",
"description": "Phone number",
"required": true,
"dataType": "string"
}
]
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The id of the action
Body
application/json
Input data for updating the action
The body is of type object
.
Response
200
application/json
The updated action
The response is of type object
.
Update action
Copy
curl --request PUT \
--url https://api.elemente.ai/api/v1/actions/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Order checking",
"description": "checking customer order status",
"waitingMessage": "Hold on while i check your order",
"method": "GET",
"url": "https://api.elemente.ai/order-phone-number?phone={phone}",
"headers": [
{
"key": "X-Shopify-Access-Token",
"value": "{{shopify-access-key}}"
}
],
"queryParams": [
{
"key": "phone",
"value": "{phone}"
}
],
"inputVariables": [
{
"name": "phone",
"description": "Phone number",
"required": true,
"dataType": "string"
}
],
"id": "5464980934889674"
}'
Copy
{
"workspace": "354736587945343",
"type": "<string>",
"name": "Order checking",
"description": "checking customer order status",
"waitingMessage": "Hold on while i check your order",
"method": "GET",
"url": "https://api.elemente.ai/order-phone-number?phone={phone}",
"headers": [
{
"key": "X-Shopify-Access-Token",
"value": "{{shopify-access-key}}"
}
],
"queryParams": [
{
"key": "phone",
"value": "{phone}"
}
],
"inputVariables": [
{
"name": "phone",
"description": "Phone number",
"required": true,
"dataType": "string"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.