Skip to content

[back-office-tasks] add ProcedureId to task create request - #7

Merged
gmtuca merged 1 commit into
mainfrom
back-office-task-procedure-id
Jun 29, 2026
Merged

[back-office-tasks] add ProcedureId to task create request#7
gmtuca merged 1 commit into
mainfrom
back-office-task-procedure-id

Conversation

@gmtuca

@gmtuca gmtuca commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

POST /back-office-tasks in the public API now starts a back-office task from an agent (agent_…) plus a procedure (proc_…) within it — previously the request carried only agent_id. This updates the SDK to match.

  • src/GradientLabs.Api/Models/Integration/BackOfficeTasks/BackOfficeTaskRequests.cs — add ProcedureId to CreateBackOfficeTaskRequest (serializes to procedure_id via the SnakeCaseLower policy); add XML docs to AgentId and ProcedureId.
  • examples/back-office-tasks/Program.cs — set AgentId and ProcedureId (the example previously sent neither).

The response object (BackOfficeTask) is unchanged — the API does not return a procedure ID.

Note: AgentId/ProcedureId remain nullable, matching the existing model style; the API enforces that both are present.

🤖 Generated with Claude Code

The public API now starts a back-office task from an agent (`agent_…`) plus a
procedure (`proc_…`) within it, so add the ProcedureId field to
CreateBackOfficeTaskRequest and update the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmtuca
gmtuca requested review from a team as code owners June 29, 2026 14:50
@gmtuca
gmtuca merged commit c05e7e1 into main Jun 29, 2026
7 checks passed
@gmtuca
gmtuca deleted the back-office-task-procedure-id branch June 29, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants