Skip to content

Keep a work item where it is from the organization

POST
/organizations/{orgId}/work-items/{number}/keep-anchor
curl --request POST \
--url https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items/1/keep-anchor \
--header 'Authorization: Bearer <token>'

Records the decision to leave an item whose target is gone anchored where it is. An item anchored to the organization keeps its anchor for good and is refused with 400.

orgId
required
string format: uuid
number
required
integer format: int64
>= 1

The item’s number in the model’s organization.

OK

Media typeapplication/json

A work item as its page reads it.

object
id
required
string format: uuid
number
required

Per organization, never reused.

integer format: int64
modelId

Absent for an item about the organization.

string format: uuid
type
required

What kind of work an item is. FINDING is raised from a validation result and is not created by hand.

string
Allowed values: TASK BUG QUESTION FINDING
findingCode

The check that reported the finding a FINDING item tracks; absent on every other type.

string
title
required
string
anchor
required

The place in the model an item is about, or the organization as a whole. Finer fields are absent, never null.

object
resourceKind
required
string
Allowed values: model organization
resourceId
required

The model, or the organization for an item about the organization.

string format: uuid
elementId

Absent on an item about the model as a whole, and on an organization item.

string format: uuid
property

The element’s property by name; absent unless the item is about one property.

string
anchorStatus

Present only while the anchor’s target is not in the model at the item’s checked ref.

object
gone
required
boolean
keptAsIs

Present when someone decided to keep the item where it is.

boolean
at

When the commit that removed the target was made; absent when the target was found missing on read.

string format: date-time
by
object
id
required
string format: uuid
type
required

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.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

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.

string
lastName

The target’s name when it was last seen.

string
lastOwnerId

The element that owned the target when it was last seen.

string format: uuid
stateId
required
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
assignee
object
id
required
string format: uuid
name
string
priority
required
string
Allowed values: NONE URGENT HIGH MEDIUM LOW
due
string format: date
blocked
required

An open item blocks this one.

boolean
ready
required

Unstarted, unassigned and not blocked: anyone may claim it.

boolean
blockedBy
required

The items that block this one, open and closed, locked where the reader may not read them.

Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
ownerId
required

The organization the item’s number belongs to.

string format: uuid
raisedOn

Absent for an item about the organization.

object
refId
required
string format: uuid
kind
required
string
Allowed values: BRANCH DRAFT
name
required

The ref’s name when the item was raised.

string
checkedRef

The ref the target was checked at for this answer: raisedOn while that ref lives, otherwise the model’s default shared branch, named as it is now.

object
refId
required
string format: uuid
kind
required
string
Allowed values: BRANCH DRAFT
name
required

The ref’s name when the item was raised.

string
anchorNames

What the anchor names, at checkedRef while the target is there, and from the last revision known of it once it is gone. A field that could not be resolved is absent. Carried by the routes that answer a whole item, not by lists.

object
elementName
string
elementType

The element’s type key.

string
ownerId
string format: uuid
ownerName
string
propertyLabel

Absent when the metamodel gives the property no label; its name is shown then.

string
labels
required

The ids of the workflow’s labels the item carries.

Array<string>
problem
required

Markdown.

string
outOfScope
required

Markdown.

string
mustStaySame
required

Markdown.

string
acceptanceCriteria
required
Array<object>
object
id
required
string format: uuid
text
required
string
done
required
boolean
parent

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
children
required
Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
blocks
required
Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
relates
required
Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
duplicates
required
Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
duplicatedBy
required
Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

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.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
closure

How an item was closed. Present while it is closed.

object
at
required
string format: date-time
by
required
object
id
required
string format: uuid
type
required

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.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

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.

string
stateId
required
string format: uuid
evidence
required
Array<object>

A link that shows how an item was closed.

object
kind
required
string
Allowed values: COMMIT BRANCH URL
ref
required

The commit id, the branch id, or an absolute http(s) URL.

string
<= 2000 characters
label
string
<= 500 characters
note
string
finding

The validation finding a finding item tracks; present exactly on an item of type FINDING. code, level, subject, elementId and property are the entry’s as it was tracked; elementId is kept even when the item is anchored to the model, as for an element of a dependency.

object
key
required

The finding’s identity on the item’s model, as the validation report gives it on each entry.

string
/^[0-9a-f]{64}$/
code
required

The check that reported the finding.

string
level
required
string
Allowed values: WARN ERROR
subject

What exactly a finding is about, when its check can report more than one finding at the same code, element and property: a relation target, an offending value (with its language tag for a language string) or an identifier the check is about. Exactly one of target, value and name is present, language only beside value.

object
target
string format: uuid
value
string
language
string
name
string
elementId

Absent for a finding about the model as a whole.

string format: uuid
property

Absent unless the finding is about one property of the element.

string
firstSeenAt
required

When the finding was tracked.

string format: date-time
status
required

Whether a tracked finding is still there at the ref its item is checked at, as of the last completed check: present since it was tracked or reappeared, gone, or found again after it was gone or its item was completed.

string
Allowed values: PRESENT GONE REAPPEARED
statusCommitId

The head commit the status changed at; absent while the finding has been present since it was tracked.

string format: uuid
statusAt
required

When the status last changed; the track time until a check changes it.

string format: date-time
checkedAt
required

When the finding was last checked.

string format: date-time
checkedCommitId
required

The head commit of the last check.

string format: uuid
createdBy
required
object
id
required
string format: uuid
type
required

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.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

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.

string

Example

{
"type": "TASK",
"anchor": {
"resourceKind": "model"
},
"anchorStatus": {
"gone": true,
"by": {
"type": "USER"
}
},
"category": "TRIAGE",
"priority": "NONE",
"blockedBy": [
{
"category": "TRIAGE"
}
],
"raisedOn": {
"kind": "BRANCH"
},
"checkedRef": {
"kind": "BRANCH"
},
"parent": {
"category": "TRIAGE"
},
"children": [
{
"category": "TRIAGE"
}
],
"blocks": [
{
"category": "TRIAGE"
}
],
"relates": [
{
"category": "TRIAGE"
}
],
"duplicates": [
{
"category": "TRIAGE"
}
],
"duplicatedBy": [
{
"category": "TRIAGE"
}
],
"closure": {
"by": {
"type": "USER"
},
"evidence": [
{
"kind": "COMMIT"
}
]
},
"finding": {
"level": "WARN",
"status": "PRESENT"
},
"createdBy": {
"type": "USER"
}
}

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.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

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.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

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.

string
violations

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.

Array<object>
object
property
required
string
message
required
string

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.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

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.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

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.

string
violations

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.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

The item’s target is still in the model.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

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.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

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.

string
violations

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.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

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.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

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.

string
violations

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.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}