Skip to content

Change a work view

PATCH
/organizations/{orgId}/work-views/{viewId}
curl --request PATCH \
--url https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-views/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "shared": true, "filters": { "additionalProperty": [ "example" ] }, "grouping": "state", "layout": "board" }'

Changes the fields the request names; filters, when named, replaces the whole filter set. Only the view’s creator may.

orgId
required
string format: uuid
viewId
required
string format: uuid
Media typeapplication/json

A change to some fields of a view; an absent field stays unchanged, and filters, when present, replaces the whole filter set.

object
name
string
>= 1 characters <= 100 characters
shared
boolean
filters

The filter set by query key of the organization’s work read (tab, state, category, type, assignee, label, priority, model, creator, due, blocked, q, sort, dir), each with its values in order. tab, due, blocked, q, sort and dir take one value.

object
key
additional properties
Array<string>
>= 1 items
grouping
string
Allowed values: state assignee model priority label none
layout
string
Allowed values: board list

OK

Media typeapplication/json

A saved view of the organization’s work: its filters, grouping and layout, under a name, kept by its creator and seen by every member when shared.

object
id
required
string format: uuid
name
required
string
>= 1 characters <= 100 characters
shared
required
boolean
createdBy
required
object
id
required
string format: uuid
name
string
filters
required

The filter set by query key of the organization’s work read (tab, state, category, type, assignee, label, priority, model, creator, due, blocked, q, sort, dir), each with its values in order. tab, due, blocked, q, sort and dir take one value.

object
key
additional properties
Array<string>
>= 1 items
grouping
required
string
Allowed values: state assignee model priority label none
layout
required
string
Allowed values: board list
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"grouping": "state",
"layout": "board"
}

The name is empty or too long, or a filter key or value is not one the organization’s work read takes.

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 caller did not create the view, holds no seat in the organization, or is a service account.

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 organization is not there for the caller, or the view is not: it does not exist or is another person’s unshared view.

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"
}
]
}