List work items
const url = 'https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items?includeClosed=false&offset=0&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items?includeClosed=false&offset=0&limit=50' \ --header 'Authorization: Bearer <token>'The model’s work items, newest number first. Without a category only open items are listed, unless includeClosed is set. Items raised on another user’s live draft are left out.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Only items in a state of these categories. Repeat the parameter for several.
Only items anchored to this element, at element or property grain.
Text the title holds, or an item number with or without its #.
Whether completed and canceled items are listed when no category is named.
At most 200; a larger value is read as 200.
Responses
Section titled “Responses”OK
One page of work items.
object
A work item as a row of a list.
object
Per organization, never reused.
Absent for an item about the organization.
What kind of work an item is. FINDING is raised from a validation result and is not created by hand.
The check that reported the finding a FINDING item tracks; absent on every other type.
The place in the model an item is about, or the organization as a whole. Finer fields are absent, never null.
object
The model, or the organization for an item about the organization.
Absent on an item about the model as a whole, and on an organization item.
The element’s property by name; absent unless the item is about one property.
Present only while the anchor’s target is not in the model at the item’s checked ref.
object
Present when someone decided to keep the item where it is.
When the commit that removed the target was made; absent when the target was found missing on read.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
The target’s name when it was last seen.
The element that owned the target when it was last seen.
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
object
The ids of the workflow’s labels the item carries.
An open item blocks this one.
Unstarted, unassigned and not blocked: anyone may claim it.
The items that block this one, open and closed, locked where the reader may not read them.
Another item as a line in a relation, a parent, a blocker or a picker.
object
The reader may not open the item: it is on a model they cannot read, or on another user’s draft. A locked link carries its number only.
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
How many match, across every page.
Example
{ "items": [ { "type": "TASK", "anchor": { "resourceKind": "model" }, "anchorStatus": { "gone": true, "by": { "type": "USER" } }, "category": "TRIAGE", "priority": "NONE", "blockedBy": [ { "category": "TRIAGE" } ] } ]}The caller is a member of the organization without a seat (on the model’s metamodel, for a model’s routes), or is a service account, which no work item route admits.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}The model is not there for the caller: it does not exist, belongs to another organization, is another member’s individual model, or its organization does not have work items. Also the answer for an item number the caller may not see.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}