younifyd
Menu

List Copy Jobs

List copy jobs

GET/projects/{projectId}/datasets/copy

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the List Copy Jobs action (under Dataset Copy).
  3. Fill in the fields below, then reference the result from later steps as {{listCopyJobs.response.data}}.

Request

Path parameters

projectIdstringrequired

Query parameters

limitinteger

The maximum number of jobs to return. Use a value of 255 or less: larger values wrap around, so `300` returns at most 44 jobs and `256` returns every job.

Default 10

offsetinteger

The number of jobs to skip, for paging through results. Use a value of 255 or less: larger values wrap around, so `256` starts from the first job again.

Default 0

statestring

A comma-separated list of job states to filter by. Valid states are `pending`, `running`, `completed`, `failed`, `terminating`, and `terminated`.

Response

Returns 200 with a array<object>. Read it in later steps with {{listCopyJobs.response.data.<field>}}.

Need more? See the Sanity guide for connection setup and behaviour shared by every action.

Was this page helpful?