Overview
POST/processing/jobs/{id}/completeprocessing

Mark a claimed job succeeded

Stores the result jsonb and transitions the job to succeeded. Returns 404 when the lease guard fails (wrong token, wrong ecosystem, or already finished).

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
Request body

application/json · optional

  • leaseTokenstring

    Opaque lease token returned by /claim

  • resultany

    Arbitrary result jsonb

Example
{
  "leaseToken": "string",
  "result": {}
}
Responses
200

Job marked succeeded

  • oktrue
Example
{
  "ok": true
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/processing/jobs/{id}/complete" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "leaseToken": "string",
  "result": {}
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/processing/jobs/{id}/complete", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"leaseToken\": \"string\",\n  \"result\": {}\n}",
});
const data = await res.json();