Passo Developers
Api

Open or close a job

PATCH
/jobs/{jobId}

Sets a job's status. Body: status (open|closed) — close a finished job to hide it from creators' pickers, or reopen it. The caller must be a member of the job's workspace. 403 if the caller is only a viewer; 404 if the job does not exist or is in another workspace.

Authorization

AuthorizationBearer <token>

A Supabase-issued OAuth user access token. On collection endpoints, pair with a Passo-Workspace header to pick a workspace.

In: header

Path Parameters

jobId*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/jobs/string" \  -H "Content-Type: application/json" \  -d '{    "status": "open"  }'
{  "id": "string",  "workspaceId": "string",  "title": "string",  "status": "open",  "platform": "instagram",  "postingWindowStart": "string",  "postingWindowEnd": "string",  "createdAt": "string",  "updatedAt": "string"}