Skip to content

Set the caller's view mode for this board

PATCH
/boards/{board}/members/myself/view-mode
curl --request PATCH \
--url https://projects.work.optidata.cloud/api/boards/1/members/myself/view-mode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "viewMode": "view_list" }'

Persists whether the caller sees this board as a kanban or a list. Affects only the authenticated member.

board
required
integer

Board id.

Media typeapplication/json
object
viewMode
string
Allowed values: view_kanban view_list
Example
{
"viewMode": "view_list"
}

The stored view mode.

Media typeapplication/json
object
view_mode
string
Allowed values: view_kanban view_list
Example
{
"view_mode": "view_list"
}

Missing, invalid or expired bearer passport.

Media typeapplication/json
object
error
string
Example
{
"error": "JWT passport exception: Missing bearer token in request"
}

The authenticated user lacks the required board permission.

Media typeapplication/json
object
message
string
Example
{
"message": "This action is unauthorized."
}

Resource not found, or a nested resource does not belong to its parent in the path.

Media typeapplication/json
object
message
string
Example
{
"message": "Not found."
}

Validation failed.

Media typeapplication/json
object
message

First validation error message.

string
errors

Map of field name → list of error messages.

object
key
additional properties
Array<string>
Example
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}