Optimizely Work Requests API
The Work Requests API from Optimizely — 13 operation(s) for work requests.
Operations 16
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which marketing work requests are still open?”
“Can I filter work requests by template and by the date they were created?”
Tell an agent
List work requests with status {status}.
List work requests created between {from} and {to}.
Ask an LLM
“How do I submit a new work request from one of our intake templates?”
“Can I assign people when I create a work request?”
Tell an agent
Create a work request from template {template_id} with form fields {form_fields}.
Submit a new work request on template {template_id}, assigned to {assignees}, with fields {form_fields}.
Ask an LLM
“How do I pull up the details of one work request?”
“What's the current status and priority of a specific work request?”
Tell an agent
Get work request {id}.
Show me the details of work request {id}.
PATCH
/work-requests/{id}
Update a work request's status, priority or assignees · PATCH /work-requests/{id}
#
Ask an LLM
“How do I change the status of a work request?”
“Can I reassign a work request or bump its priority?”
Tell an agent
Set the status of work request {id} to {status}.
Change priority of work request {id} to {priority}.
GET
/work-requests/{id}/comments
List comments on a work request · GET /work-requests/{id}/comments
#
Ask an LLM
“What has the team said in the comments on a work request?”
“Can I page through the comment thread of a work request?”
Tell an agent
List comments on work request {id}.
Show the next {page_size} comments on work request {id}.
Ask an LLM
“How do I post a comment on a work request and mention a colleague?”
“Can I reply to an existing comment on a work request?”
Tell an agent
Comment {value} on work request {id}.
Reply {value} to comment {parent_comment_id} on work request {id}.
GET
/work-requests/{work_request_id}/comments/{comment_id}
Get a work request comment · GET /work-requests/{work_request_id}/comments/{comment_id}
#
Ask an LLM
“How do I fetch one particular comment from a work request?”
“Who wrote a specific comment on a work request?”
Tell an agent
Get comment {comment_id} on work request {work_request_id}.
Show comment {comment_id} from work request {work_request_id}.
POST
/work-requests/{id}/attachments
Attach a file to a work request · POST /work-requests/{id}/attachments
#
Ask an LLM
“How do I attach an uploaded file to a work request?”
“Do I need an upload session key before adding an attachment to a work request?”
Tell an agent
Attach uploaded file {key} named {name} to work request {id}.
Add attachment {name} from upload {key} to work request {id}.
DELETE
/work-requests/{work_request_id}/attachments/{attachment_id}
Delete a work request attachment · DELETE /work-requests/{work_request_id}/attachments/{attachment_id}
#
Ask an LLM
“How do I remove an attachment from a work request?”
“Can I delete a file someone attached to a work request by mistake?”
Tell an agent destructive · confirm first
Delete attachment {attachment_id} from work request {work_request_id}.
Remove the attached file {attachment_id} on work request {work_request_id}.
POST
/work-requests/{id}/creative-assets
Add a creative asset to a work request · POST /work-requests/{id}/creative-assets
#
Ask an LLM
“How do I add a creative asset, not just an attachment, to a work request?”
“Can I upload design files as creative assets on a work request?”
Tell an agent
Add creative asset {name} from upload {key} to work request {id}.
Create a creative asset on work request {id} using upload session {key}, named {name}.
DELETE
/work-requests/{work_request_id}/creative-assets/{creative_asset_id}
Delete a work request creative asset · DELETE /work-requests/{work_request_id}/creative-assets/{creative_asset_id}
#
Ask an LLM
“How do I remove a creative asset from a work request?”
“Can I delete a design asset that was added to a work request?”
Tell an agent destructive · confirm first
Delete creative asset {creative_asset_id} from work request {work_request_id}.
Remove creative asset {creative_asset_id} on work request {work_request_id}.
GET
/work-requests/{id}/approved-assets
List approved assets of a work request · GET /work-requests/{id}/approved-assets
#
Ask an LLM
“Which assets on a work request have already been approved?”
“Can I see only the signed-off deliverables for a work request?”
Tell an agent
List approved assets for work request {id}.
Show the approved deliverables on work request {id}.
POST
/work-requests/{id}/campaigns
Turn a work request into a campaign · POST /work-requests/{id}/campaigns
#
Ask an LLM
“How do I convert an approved work request into a campaign?”
“Can I set start and end dates when creating a campaign from a work request?”
Tell an agent
Create campaign {title} from work request {id}.
Create campaign {title} from work request {id} running {start_date} to {end_date}.
Ask an LLM
“How do I create a task from a work request?”
“Can a task created from a work request go into a specific campaign or workflow?”
Tell an agent
Create a task from work request {id}.
Create task {title} from work request {id} due {due_at}.
GET
/work-requests/{id}/related-resources
List resources related to a work request · GET /work-requests/{id}/related-resources
#
Ask an LLM
“What campaigns or tasks were created from a work request?”
“Where can I see everything linked to a work request?”
Tell an agent
List related resources for work request {id}.
Show what is linked to work request {id}.
PUT
/work-requests/{work_request_id}/form-fields/{form_field_identifier}
Update a work request form field · PUT /work-requests/{work_request_id}/form-fields/{form_field_identifier}
#
Ask an LLM
“How do I change the answer to one form field on a submitted work request?”
“Can I edit a single intake field on a work request without touching the rest?”
Tell an agent
Update form field {form_field_identifier} on work request {work_request_id}.
Change the value of field {form_field_identifier} in work request {work_request_id}.