Tasks
Update task status
Customers
Wallets
Invoices
Entitlements
Environments
Events
Features
Payments
Integrations
Subscriptions
Tenants
Users
Tasks
Update task status
Update the status of a task
PUT
/
tasks
/
{id}
/
status
curl --request PUT \
--url https://api.cloud.flexprice.io/v1/tasks/{id}/status \
--header 'Content-Type: application/json' \
--data '{
"task_status": "PENDING"
}'
{
"completed_at": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"entity_type": "EVENTS",
"error_summary": "<string>",
"failed_at": "<string>",
"failed_records": 123,
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"id": "<string>",
"metadata": {},
"processed_records": 123,
"started_at": "<string>",
"status": "<string>",
"successful_records": 123,
"task_status": "PENDING",
"task_type": "IMPORT",
"tenant_id": "<string>",
"total_records": 123,
"updated_at": "<string>",
"updated_by": "<string>"
}
Path Parameters
Task ID
Body
application/json
New status
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
curl --request PUT \
--url https://api.cloud.flexprice.io/v1/tasks/{id}/status \
--header 'Content-Type: application/json' \
--data '{
"task_status": "PENDING"
}'
{
"completed_at": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"entity_type": "EVENTS",
"error_summary": "<string>",
"failed_at": "<string>",
"failed_records": 123,
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"id": "<string>",
"metadata": {},
"processed_records": 123,
"started_at": "<string>",
"status": "<string>",
"successful_records": 123,
"task_status": "PENDING",
"task_type": "IMPORT",
"tenant_id": "<string>",
"total_records": 123,
"updated_at": "<string>",
"updated_by": "<string>"
}