Wexa.ai
  1. Coworker schedules
Wexa.ai
  • Wexa AI
  • Getting Started
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting
  • API Endpoints
    • Actions
      • create action
      • get action
    • Agentflows
      • get agent flow
      • failover agentflows
      • Get agentflow by projectId and UserId
      • Verify_quota
      • get agentflow by id
      • create agentflow
      • Add skilled agent to agentflow
      • Update skilled agent
    • Analytics
      • Get analytics
    • Customer
      • get customer
      • Get credit history
    • Coworker schedules
      • get schedules
        GET
      • create coworker schedule
        POST
      • get schedule coworker by its id
        GET
      • update schedule by its id
        PATCH
      • delete schedule by its id
        DELETE
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Credits
      • Validate user validity
      • validate workspace credits
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Executeflow
      • create executeflow
      • get executions
      • pause executeflow
      • resume execution
      • get execution by execution id
      • cancel executeflow
      • verify quota
      • get execution details for monitoring
      • execute agentflow
    • Files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
      • get total file size
      • upload files
    • Inbox
      • get inbox
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Settings
      • get settings
    • Skills
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
      • create skill
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • resume task
      • Pause running task
      • Stop task
      • Get all tasks
      • get specific task graph
    • Tables
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a coulmn
    • Project member
      • project_member
    • Project
      • Get all projects
      • Get project
      • Get Projects
      • create project
      • update project
      • Delete project
  1. Coworker schedules

update schedule by its id

PATCH
api.wexa.ai/schedule/coworker/6807377dff5c4953f01709bc
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'api.wexa.ai/schedule/coworker/6807377dff5c4953f01709bc?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"goal":{"template":"say about abdul kalam","display_template":"[{\"type\":\"paragraph\",\"children\":[{\"text\":\"say about abdul kalam\"}]},{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]"},"schedule":1745322000.0
}'
Response Response Example
{
    "conclusion": null,
    "count": 0,
    "coworker_id": "68067c49c517ff5238533ccf",
    "created_at": 1745303421.154476,
    "created_by": "67fdea40aac77be632954f0e",
    "frequency": null,
    "goal": {
        "display_template": "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"say about abdul kalam\"}]},{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]",
        "template": "say about abdul kalam"
    },
    "_id": "6807377dff5c4953f01709bc",
    "last_coworker_execution_id": null,
    "last_record_id": null,
    "limit": null,
    "projectID": "67fdea40aac77be632954f13",
    "schedule": 1745322000,
    "status": "active",
    "table": null,
    "type": "once",
    "updated_at": 1745304279.590637,
    "task_id": "6807377cff5c4953f01709ba"
}

Request

Query Params
projectID
string 
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
string 
required
Example:
{{x-api-key}}
Body Params application/json
goal
object 
required
template
string 
required
display_template
string 
required
schedule
integer 
required
Examples

Responses

🟢200update schedule by its id
application/json
Body
conclusion
null 
required
count
integer 
required
coworker_id
string 
required
created_at
number 
required
created_by
string 
required
frequency
null 
required
goal
object 
required
display_template
string 
required
template
string 
required
_id
string 
required
last_coworker_execution_id
null 
required
last_record_id
null 
required
limit
null 
required
projectID
string 
required
schedule
integer 
required
status
string 
required
table
null 
required
type
string 
required
updated_at
number 
required
task_id
string 
required
Modified at 2025-04-23 12:57:51
Previous
get schedule coworker by its id
Next
delete schedule by its id
Built with