Skip to content

Paths/Endpoints

CLASS DESCRIPTION
PlankaEndpoints

PlankaEndpoints

PlankaEndpoints(client: Client)
METHOD DESCRIPTION
acceptTerms

Accept terms during the authentication flow. Converts the pending token to an access token.

clearList

Deletes all cards from a list. Only works with trash-type lists. Requires project manager or board editor permissions.

createAccessToken

Authenticates a user using email/username and password. Returns an access token for API authentication.

createAttachment

Creates an attachment on a card. Requires board editor permissions.

createBackgroundImage

Uploads a background image for a project. Requires project manager permissions.

createBaseCustomFieldGroup

Creates a base custom field group within a project. Requires project manager permissions.

createBoard

Creates a board within a project. Supports importing from Trello. Requires project manager permissions.

createBoardCustomFieldGroup

Creates a custom field group within a board. Either baseCustomFieldGroupId or name must be provided. Requires board editor permissions.

createBoardMembership

Creates a board membership within a board. Requires project manager permissions.

createBoardNotificationService

Creates a new notification service for a board. Requires project manager permissions.

createCard

Creates a card within a list. Requires board editor permissions.

createCardCustomFieldGroup

Creates a custom field group within a card. Either baseCustomFieldGroupId or name must be provided. Requires board editor permissions.

createCardLabel

Adds a label to a card. Requires board editor permissions.

createCardMembership

Adds a user to a card. Requires board editor permissions.

createComment

Creates a new comment on a card. Requires board editor permissions or comment permissions.

createCustomFieldInBaseGroup

Creates a custom field within a base custom field group. Requires project manager permissions.

createCustomFieldInGroup

Creates a custom field within a custom field group. Requires board editor permissions.

createLabel

Creates a label within a board. Requires board editor permissions.

createList

Creates a list within a board. Requires board editor permissions.

createProject

Creates a project. The current user automatically becomes a project manager.

createProjectManager

Creates a project manager within a project. Requires admin privileges for shared projects or existing project manager permissions. The user must be an admin or project owner.

createTask

Creates a task within a task list. Either linkedCardId or name must be provided. Requires board editor permissions.

createTaskList

Creates a task list within a card. Requires board editor permissions.

createUser

Creates a user account. Requires admin privileges.

createUserNotificationService

Creates a new notification service for a user. Users can only create services for themselves.

createWebhook

Creates a webhook. Requires admin privileges.

deleteAccessToken

Logs out the current user by deleting the session and access token. Clears HTTP-only cookies if present.

deleteAttachment

Deletes an attachment. Requires board editor permissions.

deleteBackgroundImage

Deletes a background image. Requires project manager permissions.

deleteBaseCustomFieldGroup

Deletes a base custom field group. Requires project manager permissions.

deleteBoard

Deletes a board and all its contents (lists, cards, etc.). Requires project manager permissions.

deleteBoardMembership

Deletes a board membership. Users can remove their own membership, project managers can remove any membership.

deleteCard

Deletes a card and all its contents (tasks, attachments, etc.). Requires board editor permissions.

deleteCardLabel

Removes a label from a card. Requires board editor permissions.

deleteCardMembership

Removes a user from a card. Requires board editor permissions.

deleteComment

Deletes a comment. Can be deleted by the comment author (with comment permissions) or project manager.

deleteCustomField

Deletes a custom field. Can delete the in base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

deleteCustomFieldGroup

Deletes a custom field group. Requires board editor permissions.

deleteCustomFieldValue

Deletes a custom field value for a specific card. Requires board editor permissions.

deleteLabel

Deletes a label. Requires board editor permissions.

deleteList

Deletes a list and moves its cards to a trash list. Can only delete finite lists. Requires board editor permissions.

deleteNotificationService

Deletes a notification service. Users can delete their own services, project managers can delete board services.

deleteProject

Deletes a project. The project must not have any boards. Requires project manager permissions.

deleteProjectManager

Deletes a project manager. Requires admin privileges for shared projects or existing project manager permissions. Cannot remove the last project manager.

deleteTask

Deletes a task. Requires board editor permissions.

deleteTaskList

Deletes a task list and all its tasks. Requires board editor permissions.

deleteUser

Deletes a user account. Cannot delete the default admin user. Requires admin privileges.

deleteWebhook

Deletes a webhook. Requires admin privileges.

duplicateCard

Creates a duplicate of a card with all its contents (tasks, attachments, etc.). Requires board editor permissions.

exchangeForAccessTokenWithOidc

Exchanges an OIDC authorization code for an access token. Creates a user if they do not exist.

getBoard

Retrieves comprehensive board information, including lists, cards, and other related data.

getBoardActions

Retrieves a list of actions (activity history) for a specific board, with pagination support.

getCard

Retrieves comprehensive card information, including tasks, attachments, and other related data.

getCardActions

Retrieves a list of actions (activity history) for a specific card, with pagination support.

getCards

Retrieves cards from an endless list with filtering, search, and pagination support.

getComments

Retrieves comments for a card with pagination support. Requires access to the card.

getConfig

Retrieves the application configuration.

getCustomFieldGroup

Retrieves comprehensive custom field group information, including fields and values. Requires access to the board/card.

getList

Retrieves comprehensive list information, including cards, attachments, and other related data. Requires access to the board.

getNotification

Retrieves notification, including creator users. Users can only access their own notifications.

getNotifications

Retrieves all unread notifications for the current user, including creator users.

getProject

Retrieves comprehensive project information, including boards, board memberships, and other related data.

getProjects

Retrieves all projects the current user has access to, including managed projects, membership projects, and shared projects (for admins).

getTaskList

Retrieves task list information, including tasks. Requires access to the card.

getTerms

Retrieves terms and conditions in the specified language.

getUser

Retrieves a user. Use 'me' as ID to get the current user.

getUsers

Retrieves a list of all users. Requires admin or project owner privileges.

getWebhooks

Retrieves a list of all configured webhooks. Requires admin privileges.

moveListCards

Moves all cards from a closed list to an archive list. Requires board editor permissions.

readAllNotifications

Marks all notifications for the current user as read.

readCardNotifications

Marks all notifications for a specific card as read for the current user. Requires access to the card.

revokePendingToken

Revokes a pending authentication token and cancels the authentication flow.

sortList

Sorts all cards within a list. Requires board editor permissions.

testNotificationService

Sends a test notification to verify the notification service is working. Users can test their own services, project managers can test board services.

updateAttachment

Updates an attachment. Requires board editor permissions.

updateBaseCustomFieldGroup

Updates a base custom field group. Requires project manager permissions.

updateBoard

Updates a board. Project managers can update all fields, board members can only subscribe/unsubscribe.

updateBoardMembership

Updates a board membership. Requires project manager permissions.

updateCard

Updates a card. Board editors can update all fields, viewers can only subscribe/unsubscribe.

updateComments

Updates a comment. Only the author of the comment can update it.

updateCustomField

Updates a custom field. Can update in the base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

updateCustomFieldGroup

Updates a custom field group. Supports both board-wide and card-specific groups. Requires board editor permissions.

updateCustomFieldValue

Creates or updates a custom field value for a card. Requires board editor permissions.

updateLabel

Updates a label. Requires board editor permissions.

updateList

Updates a list. Can move lists between boards. Requires board editor permissions.

updateNotification

Updates a notification. Users can only update their own notifications.

updateNotificationService

Updates a notification service. Users can update their own services, project managers can update board services.

updateProject

Updates a project. Accessible fields depend on user permissions.

updateTask

Updates a task. Linked card tasks have limited update options. Requires board editor permissions.

updateTaskList

Updates a task list. Requires board editor permissions.

updateUser

Updates a user. Users can update their own profile, admins can update any user.

updateUserAvatar

Updates a user's avatar image. Users can update their own avatar, admins can update any user's avatar.

updateUserEmail

Updates a user's email address. Users must provide current password when updating their own email. Admins can update any user's email without a password.

updateUserPassword

Updates a user's password. Users must provide a current password when updating their own password. Admins can update any user's password without the current password. Returns a new access token when updating own password.

updateUserUsername

Updates a user's username. Users must provide a current password when updating their own username (unless they are SSO users with oidcIgnoreUsername enabled). Admins can update any user's username without the current password.

updateWebhook

Updates a webhook. Requires admin privileges.

Source code in src/plankapy/v2/api/paths.py
25
26
def __init__(self, client: Client) -> None:
    self.client = client

acceptTerms

acceptTerms(**kwargs: Unpack[Request_acceptTerms]) -> Response_acceptTerms

Accept terms during the authentication flow. Converts the pending token to an access token.

PARAMETER DESCRIPTION

pendingToken

Pending token received from the authentication flow

TYPE: str

signature

Terms signature hash based on user role

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Error

401 Invalid pending token

Error

403 Authentication restriction

Source code in src/plankapy/v2/api/paths.py
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
def acceptTerms(self, **kwargs: Unpack[Request_acceptTerms]) -> Response_acceptTerms:
    """Accept terms during the authentication flow. Converts the pending token to an access token.

    Args:
        pendingToken (str): Pending token received from the authentication flow
        signature (str): Terms signature hash based on user role

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Error: 401 Invalid pending token
        Error: 403 Authentication restriction
    """
    resp = self.client.post("api/access-tokens/accept-terms", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

clearList

clearList(id: str) -> Response_clearList

Deletes all cards from a list. Only works with trash-type lists. Requires project manager or board editor permissions.

PARAMETER DESCRIPTION

id

ID of the list to clear (must be a trash-type list))

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
def clearList(self, id: str) -> Response_clearList:
    """Deletes all cards from a list. Only works with trash-type lists. Requires project manager or board editor permissions.

    Args:
        id (str): ID of the list to clear (must be a trash-type list))

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/lists/{id}/clear")
    raise_planka_err(resp)
    return resp.json()

createAccessToken

Authenticates a user using email/username and password. Returns an access token for API authentication.

PARAMETER DESCRIPTION

emailOrUsername

Email address or username of the user

TYPE: str

password

Password of the user

TYPE: str

withHttpOnlyToken

Whether to include an HTTP-only authentication cookie

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Error

401 Invalid credentials

Error

403 Authentication restriction

Source code in src/plankapy/v2/api/paths.py
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
def createAccessToken(self, **kwargs: Unpack[Request_createAccessToken]) -> Response_createAccessToken:
    """Authenticates a user using email/username and password. Returns an access token for API authentication.

    Args:
        emailOrUsername (str): Email address or username of the user
        password (str): Password of the user
        withHttpOnlyToken (bool): Whether to include an HTTP-only authentication cookie

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Error: 401 Invalid credentials
        Error: 403 Authentication restriction
    """
    resp = self.client.post("api/access-tokens", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createAttachment

createAttachment(cardId: str, mime_type: str | None = None, **kwargs: Unpack[Request_createAttachment]) -> Response_createAttachment

Creates an attachment on a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to create the attachment on)

TYPE: str

mime_type

Optional mime type for file uploads

TYPE: str | None DEFAULT: None

type

Type of the attachment

TYPE: Literal[file, link]

file

File to upload

TYPE: bytes

url

URL for the link attachment

TYPE: str

name

Name/title of the attachment

TYPE: str

requestId

Request ID for tracking

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Error

422 Upload or validation error

Source code in src/plankapy/v2/api/paths.py
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
def createAttachment(self, cardId: str, mime_type: str|None=None, **kwargs: Unpack[Request_createAttachment]) -> Response_createAttachment:
    """Creates an attachment on a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to create the attachment on)
        mime_type (str | None): Optional mime type for file uploads
        type (Literal['file', 'link']): Type of the attachment
        file (bytes): File to upload
        url (str): URL for the link attachment
        name (str): Name/title of the attachment
        requestId (str): Request ID for tracking

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Error: 422 Upload or validation error
    """
    # Handle file attachment
    if kwargs.get('type') == 'file':
        file_data = kwargs.pop('file')
        name = kwargs['name']
        resp = self.client.post(f"api/cards/{cardId}/attachments", 
            data=kwargs, 
            files={'file': (name, file_data, mime_type)}, 
        )
        raise_planka_err(resp)

    # Handle link attachment 
    else:
        resp = self.client.post(f"api/cards/{cardId}/attachments", json=kwargs)
        raise_planka_err(resp)

    return resp.json()

createBackgroundImage

createBackgroundImage(projectId: str, mime_type: str | None = None, **kwargs: Unpack[Request_createBackgroundImage]) -> Response_createBackgroundImage

Uploads a background image for a project. Requires project manager permissions.

PARAMETER DESCRIPTION

projectId

ID of the project to upload background image for)

TYPE: str

mime_type

Optional mime type for the file upload

TYPE: str | None DEFAULT: None

file

Background image file (must be an image format)

TYPE: bytes

requestId

Request ID for tracking

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Error

422 File upload error

Source code in src/plankapy/v2/api/paths.py
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
def createBackgroundImage(self, projectId: str, mime_type: str | None=None, **kwargs: Unpack[Request_createBackgroundImage]) -> Response_createBackgroundImage:
    """Uploads a background image for a project. Requires project manager permissions.

    Args:
        projectId (str): ID of the project to upload background image for)
        mime_type (str | None): Optional mime type for the file upload
        file (bytes): Background image file (must be an image format)
        requestId (str): Request ID for tracking

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Error: 422 File upload error
    """
    resp = self.client.post(f"api/projects/{projectId}/background-images", 
        files={'file': ('background', kwargs['file'], mime_type)}, 
    )
    raise_planka_err(resp)
    return resp.json()

createBaseCustomFieldGroup

Creates a base custom field group within a project. Requires project manager permissions.

PARAMETER DESCRIPTION

projectId

ID of the project to create the base custom field group in)

TYPE: str

name

Name/title of the base custom field group

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
def createBaseCustomFieldGroup(self, projectId: str, **kwargs: Unpack[Request_createBaseCustomFieldGroup]) -> Response_createBaseCustomFieldGroup:
    """Creates a base custom field group within a project. Requires project manager permissions.

    Args:
        projectId (str): ID of the project to create the base custom field group in)
        name (str): Name/title of the base custom field group

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/projects/{projectId}/base-custom-field-groups", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createBoard

Creates a board within a project. Supports importing from Trello. Requires project manager permissions.

PARAMETER DESCRIPTION

projectId

ID of the project to create the board in)

TYPE: str

position

Position of the board within the project

TYPE: int

name

Name/title of the board

TYPE: str

importType

Type of import

TYPE: Literal[trello]

importFile

Import file

TYPE: bytes

requestId

Request ID for tracking

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Error

422 Import file upload error

Source code in src/plankapy/v2/api/paths.py
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
def createBoard(self, projectId: str, **kwargs: Unpack[Request_createBoard]) -> Response_createBoard:
    """Creates a board within a project. Supports importing from Trello. Requires project manager permissions.

    Args:
        projectId (str): ID of the project to create the board in)
        position (int): Position of the board within the project
        name (str): Name/title of the board
        importType (Literal['trello']): Type of import
        importFile (bytes): Import file
        requestId (str): Request ID for tracking

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
        Error: 422 Import file upload error
    """
    if imp_file := kwargs.pop('importFile', None):
        resp = self.client.post(
            f"api/projects/{projectId}/boards", 
            files={'file': (f'import', imp_file, None)}, 
            data=kwargs)
    else:
        resp = self.client.post(f"api/projects/{projectId}/boards", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createBoardCustomFieldGroup

Creates a custom field group within a board. Either baseCustomFieldGroupId or name must be provided. Requires board editor permissions.

PARAMETER DESCRIPTION

boardId

ID of the board to create the custom field group in)

TYPE: str

baseCustomFieldGroupId

ID of the base custom field group used as a template

TYPE: str

position

Position of the custom field group within the board

TYPE: int

name

Name/title of the custom field group (required if baseCustomFieldGroupId is not provided)

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
def createBoardCustomFieldGroup(self, boardId: str, **kwargs: Unpack[Request_createBoardCustomFieldGroup]) -> Response_createBoardCustomFieldGroup:
    """Creates a custom field group within a board. Either `baseCustomFieldGroupId` or `name` must be provided. Requires board editor permissions.

    Args:
        boardId (str): ID of the board to create the custom field group in)
        baseCustomFieldGroupId (str): ID of the base custom field group used as a template
        position (int): Position of the custom field group within the board
        name (str | None): Name/title of the custom field group (required if `baseCustomFieldGroupId` is not provided)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/boards/{boardId}/custom-field-groups", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createBoardMembership

Creates a board membership within a board. Requires project manager permissions.

PARAMETER DESCRIPTION

boardId

ID of the board to create the board membership in)

TYPE: str

userId

ID of the user who is a member of the board

TYPE: str

role

Role of the user in the board

TYPE: Literal[editor, viewer]

canComment

Whether the user can comment on cards (applies only to viewers)

TYPE: bool | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
def createBoardMembership(self, boardId: str, **kwargs: Unpack[Request_createBoardMembership]) -> Response_createBoardMembership:
    """Creates a board membership within a board. Requires project manager permissions.

    Args:
        boardId (str): ID of the board to create the board membership in)
        userId (str): ID of the user who is a member of the board
        role (Literal['editor', 'viewer']): Role of the user in the board
        canComment (bool | None): Whether the user can comment on cards (applies only to viewers)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.post(f"api/boards/{boardId}/board-memberships", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createBoardNotificationService

Creates a new notification service for a board. Requires project manager permissions.

PARAMETER DESCRIPTION

boardId

ID of the board to create notification service for)

TYPE: str

url

URL endpoint for notifications

TYPE: str

format

Format for notification messages

TYPE: Literal[text, markdown, html]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
def createBoardNotificationService(self, boardId: str, **kwargs: Unpack[Request_createBoardNotificationService]) -> Response_createBoardNotificationService:
    """Creates a new notification service for a board. Requires project manager permissions.

    Args:
        boardId (str): ID of the board to create notification service for)
        url (str): URL endpoint for notifications
        format (Literal['text', 'markdown', 'html']): Format for notification messages

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.post(f"api/boards/{boardId}/notification-services", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCard

Creates a card within a list. Requires board editor permissions.

PARAMETER DESCRIPTION

listId

ID of the list to create the card in)

TYPE: str

type

Type of the card

TYPE: Literal[project, story]

position

Position of the card within the list

TYPE: int | None

name

Name/title of the card

TYPE: str

description

Detailed description of the card

TYPE: str | None

dueDate

Due date for the card

TYPE: str

isDueCompleted

Whether the due date is completed

TYPE: bool | None

stopwatch

Stopwatch data for time tracking

TYPE: dict[str, Any] | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
def createCard(self, listId: str, **kwargs: Unpack[Request_createCard]) -> Response_createCard:
    """Creates a card within a list. Requires board editor permissions.

    Args:
        listId (str): ID of the list to create the card in)
        type (Literal['project', 'story']): Type of the card
        position (int | None): Position of the card within the list
        name (str): Name/title of the card
        description (str | None): Detailed description of the card
        dueDate (str): Due date for the card
        isDueCompleted (bool | None): Whether the due date is completed
        stopwatch (dict[str, Any] | None): Stopwatch data for time tracking

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/lists/{listId}/cards", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCardCustomFieldGroup

Creates a custom field group within a card. Either baseCustomFieldGroupId or name must be provided. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to create the custom field group in)

TYPE: str

baseCustomFieldGroupId

ID of the base custom field group used as a template

TYPE: str

position

Position of the custom field group within the card

TYPE: int

name

Name/title of the custom field group (required if baseCustomFieldGroupId is not provided)

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
def createCardCustomFieldGroup(self, cardId: str, **kwargs: Unpack[Request_createCardCustomFieldGroup]) -> Response_createCardCustomFieldGroup:
    """Creates a custom field group within a card. Either `baseCustomFieldGroupId` or `name` must be provided. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to create the custom field group in)
        baseCustomFieldGroupId (str): ID of the base custom field group used as a template
        position (int): Position of the custom field group within the card
        name (str | None): Name/title of the custom field group (required if `baseCustomFieldGroupId` is not provided)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/cards/{cardId}/custom-field-groups", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCardLabel

Adds a label to a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to add the label to)

TYPE: str

labelId

ID of the label to add to the card

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
def createCardLabel(self, cardId: str, **kwargs: Unpack[Request_createCardLabel]) -> Response_createCardLabel:
    """Adds a label to a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to add the label to)
        labelId (str): ID of the label to add to the card

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.post(f"api/cards/{cardId}/card-labels", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCardMembership

Adds a user to a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to add the user to)

TYPE: str

userId

ID of the card to add the user to

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
def createCardMembership(self, cardId: str, **kwargs: Unpack[Request_createCardMembership]) -> Response_createCardMembership:
    """Adds a user to a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to add the user to)
        userId (str): ID of the card to add the user to

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.post(f"api/cards/{cardId}/card-memberships", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createComment

Creates a new comment on a card. Requires board editor permissions or comment permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to create the comment on)

TYPE: str

text

Content of the comment

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
def createComment(self, cardId: str, **kwargs: Unpack[Request_createComment]) -> Response_createComment:
    """Creates a new comment on a card. Requires board editor permissions or comment permissions.

    Args:
        cardId (str): ID of the card to create the comment on)
        text (str): Content of the comment

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/cards/{cardId}/comments", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCustomFieldInBaseGroup

Creates a custom field within a base custom field group. Requires project manager permissions.

PARAMETER DESCRIPTION

baseCustomFieldGroupId

ID of the base custom field group to create the custom field in)

TYPE: str

position

Position of the custom field within the group

TYPE: int

name

Name/title of the custom field

TYPE: str

showOnFrontOfCard

Whether to show the field on the front of cards

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
def createCustomFieldInBaseGroup(self, baseCustomFieldGroupId: str, **kwargs: Unpack[Request_createCustomFieldInBaseGroup]) -> Response_createCustomFieldInBaseGroup:
    """Creates a custom field within a base custom field group. Requires project manager permissions.

    Args:
        baseCustomFieldGroupId (str): ID of the base custom field group to create the custom field in)
        position (int): Position of the custom field within the group
        name (str): Name/title of the custom field
        showOnFrontOfCard (bool): Whether to show the field on the front of cards

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.post(f"api/base-custom-field-groups/{baseCustomFieldGroupId}/custom-fields", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createCustomFieldInGroup

Creates a custom field within a custom field group. Requires board editor permissions.

PARAMETER DESCRIPTION

customFieldGroupId

ID of the custom field group to create the custom field in)

TYPE: str

position

Position of the custom field within the group

TYPE: int

name

Name/title of the custom field

TYPE: str

showOnFrontOfCard

Whether to show the field on the front of cards

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
def createCustomFieldInGroup(self, customFieldGroupId: str, **kwargs: Unpack[Request_createCustomFieldInGroup]) -> Response_createCustomFieldInGroup:
    """Creates a custom field within a custom field group. Requires board editor permissions.

    Args:
        customFieldGroupId (str): ID of the custom field group to create the custom field in)
        position (int): Position of the custom field within the group
        name (str): Name/title of the custom field
        showOnFrontOfCard (bool): Whether to show the field on the front of cards

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/custom-field-groups/{customFieldGroupId}/custom-fields", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createLabel

Creates a label within a board. Requires board editor permissions.

PARAMETER DESCRIPTION

boardId

ID of the board to create the label in)

TYPE: str

position

Position of the label within the board

TYPE: int

name

Name/title of the label

TYPE: str | None

color

Color of the label

TYPE: Literal[muddy - grey, autumn - leafs, morning - sky, antique - blue, egg - yellow, desert - sand, dark - granite, fresh - salad, lagoon - blue, midnight - blue, light - orange, pumpkin - orange, light - concrete, sunny - grass, navy - blue, lilac - eyes, apricot - red, orange - peel, silver - glint, bright - moss, deep - ocean, summer - sky, berry - red, light - cocoa, grey - stone, tank - green, coral - green, sugar - plum, pink - tulip, shady - rust, wet - rock, wet - moss, turquoise - sea, lavender - fields, piggy - red, light - mud, gun - metal, modern - green, french - coast, sweet - lilac, red - burgundy, pirate - gold]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
def createLabel(self, boardId: str, **kwargs: Unpack[Request_createLabel]) -> Response_createLabel:
    """Creates a label within a board. Requires board editor permissions.

    Args:
        boardId (str): ID of the board to create the label in)
        position (int): Position of the label within the board
        name (str | None): Name/title of the label
        color (Literal['muddy-grey', 'autumn-leafs', 'morning-sky', 'antique-blue', 'egg-yellow', 'desert-sand', 'dark-granite', 'fresh-salad', 'lagoon-blue', 'midnight-blue', 'light-orange', 'pumpkin-orange', 'light-concrete', 'sunny-grass', 'navy-blue', 'lilac-eyes', 'apricot-red', 'orange-peel', 'silver-glint', 'bright-moss', 'deep-ocean', 'summer-sky', 'berry-red', 'light-cocoa', 'grey-stone', 'tank-green', 'coral-green', 'sugar-plum', 'pink-tulip', 'shady-rust', 'wet-rock', 'wet-moss', 'turquoise-sea', 'lavender-fields', 'piggy-red', 'light-mud', 'gun-metal', 'modern-green', 'french-coast', 'sweet-lilac', 'red-burgundy', 'pirate-gold']): Color of the label

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/boards/{boardId}/labels", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createList

Creates a list within a board. Requires board editor permissions.

PARAMETER DESCRIPTION

boardId

ID of the board to create the list in)

TYPE: str

type

Type/status of the list

TYPE: Literal[active, closed]

position

Position of the list within the board

TYPE: int

name

Name/title of the list

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
def createList(self, boardId: str, **kwargs: Unpack[Request_createList]) -> Response_createList:
    """Creates a list within a board. Requires board editor permissions.

    Args:
        boardId (str): ID of the board to create the list in)
        type (Literal['active', 'closed']): Type/status of the list
        position (int): Position of the list within the board
        name (str): Name/title of the list

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/boards/{boardId}/lists", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createProject

Creates a project. The current user automatically becomes a project manager.

PARAMETER DESCRIPTION

type

Type of the project

TYPE: Literal[public, private]

name

Name/title of the project

TYPE: str

description

Detailed description of the project

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
def createProject(self, **kwargs: Unpack[Request_createProject]) -> Response_createProject:
    """Creates a project. The current user automatically becomes a project manager.

    Args:
        type (Literal['public', 'private']): Type of the project
        name (str): Name/title of the project
        description (str | None): Detailed description of the project

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
    """
    resp = self.client.post("api/projects", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createProjectManager

Creates a project manager within a project. Requires admin privileges for shared projects or existing project manager permissions. The user must be an admin or project owner.

PARAMETER DESCRIPTION

projectId

ID of the project to create the project manager in)

TYPE: str

userId

ID of the user who is assigned as project manager

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
def createProjectManager(self, projectId: str, **kwargs: Unpack[Request_createProjectManager]) -> Response_createProjectManager:
    """Creates a project manager within a project. Requires admin privileges for shared projects or existing project manager permissions. The user must be an admin or project owner.

    Args:
        projectId (str): ID of the project to create the project manager in)
        userId (str): ID of the user who is assigned as project manager

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/projects/{projectId}/project-managers", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createTask

Creates a task within a task list. Either linkedCardId or name must be provided. Requires board editor permissions.

PARAMETER DESCRIPTION

taskListId

ID of the task list to create task in)

TYPE: str

linkedCardId

ID of the card linked to the task

TYPE: str

position

Position of the task within the task list

TYPE: int

name

Name/title of the task (required if linkedCardId is not provided)

TYPE: str | None

isCompleted

Whether the task is completed

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
def createTask(self, taskListId: str, **kwargs: Unpack[Request_createTask]) -> Response_createTask:
    """Creates a task within a task list. Either `linkedCardId` or `name` must be provided. Requires board editor permissions.

    Args:
        taskListId (str): ID of the task list to create task in)
        linkedCardId (str): ID of the card linked to the task
        position (int): Position of the task within the task list
        name (str | None): Name/title of the task (required if `linkedCardId` is not provided)
        isCompleted (bool): Whether the task is completed

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/task-lists/{taskListId}/tasks", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createTaskList

Creates a task list within a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to create task list in)

TYPE: str

position

Position of the task list within the card

TYPE: int

name

Name/title of the task list

TYPE: str

showOnFrontOfCard

Whether to show the task list on the front of the card

TYPE: bool

hideCompletedTasks

Whether to hide completed tasks

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
def createTaskList(self, cardId: str, **kwargs: Unpack[Request_createTaskList]) -> Response_createTaskList:
    """Creates a task list within a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to create task list in)
        position (int): Position of the task list within the card
        name (str): Name/title of the task list
        showOnFrontOfCard (bool): Whether to show the task list on the front of the card
        hideCompletedTasks (bool): Whether to hide completed tasks

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/cards/{cardId}/task-lists", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createUser

createUser(**kwargs: Unpack[Request_createUser]) -> Response_createUser

Creates a user account. Requires admin privileges.

PARAMETER DESCRIPTION

email

Email address for login and notifications

TYPE: str

password

Password for user authentication (must meet password requirements)

TYPE: str

role

User role defining access permissions

TYPE: Literal[admin, projectOwner, boardUser]

name

Full display name of the user

TYPE: str

username

Unique username for user identification

TYPE: str | None

phone

Contact phone number

TYPE: str | None

organization

Organization or company name

TYPE: str | None

language

Preferred language for user interface and notifications

TYPE: Literal[ar - YE, bg - BG, cs - CZ, da - DK, de - DE, el - GR, en - GB, en - US, es - ES, et - EE, fa - IR, fi - FI, fr - FR, hu - HU, id - ID, it - IT, ja - JP, ko - KR, nl - NL, pl - PL, pt - BR, pt - PT, ro - RO, ru - RU, sk - SK, sr - Cyrl - RS, sr - Latn - RS, sv - SE, tr - TR, uk - UA, uz - UZ, zh - CN, zh - TW] | None

subscribeToOwnCards

Whether the user subscribes to their own cards

TYPE: bool

subscribeToCardWhenCommenting

Whether the user subscribes to cards when commenting

TYPE: bool

turnOffRecentCardHighlighting

Whether recent card highlighting is disabled

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

Conflict

409

Source code in src/plankapy/v2/api/paths.py
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
def createUser(self, **kwargs: Unpack[Request_createUser]) -> Response_createUser:
    """Creates a user account. Requires admin privileges.

    Args:
        email (str): Email address for login and notifications
        password (str): Password for user authentication (must meet password requirements)
        role (Literal['admin', 'projectOwner', 'boardUser']): User role defining access permissions
        name (str): Full display name of the user
        username (str | None): Unique username for user identification
        phone (str | None): Contact phone number
        organization (str | None): Organization or company name
        language (Literal['ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-GB', 'en-US', 'es-ES', 'et-EE', 'fa-IR', 'fi-FI', 'fr-FR', 'hu-HU', 'id-ID', 'it-IT', 'ja-JP', 'ko-KR', 'nl-NL', 'pl-PL', 'pt-BR', 'pt-PT', 'ro-RO', 'ru-RU', 'sk-SK', 'sr-Cyrl-RS', 'sr-Latn-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'uz-UZ', 'zh-CN', 'zh-TW'] | None): Preferred language for user interface and notifications
        subscribeToOwnCards (bool): Whether the user subscribes to their own cards
        subscribeToCardWhenCommenting (bool): Whether the user subscribes to cards when commenting
        turnOffRecentCardHighlighting (bool): Whether recent card highlighting is disabled

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        Conflict: 409 
    """
    resp = self.client.post("api/users", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createUserNotificationService

Creates a new notification service for a user. Users can only create services for themselves.

PARAMETER DESCRIPTION

userId

ID of the user to create notification service for (must be the current user))

TYPE: str

url

URL endpoint for notifications

TYPE: str

format

Format for notification messages

TYPE: Literal[text, markdown, html]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
def createUserNotificationService(self, userId: str, **kwargs: Unpack[Request_createUserNotificationService]) -> Response_createUserNotificationService:
    """Creates a new notification service for a user. Users can only create services for themselves.

    Args:
        userId (str): ID of the user to create notification service for (must be the current user))
        url (str): URL endpoint for notifications
        format (Literal['text', 'markdown', 'html']): Format for notification messages

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.post(f"api/users/{userId}/notification-services", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

createWebhook

Creates a webhook. Requires admin privileges.

PARAMETER DESCRIPTION

name

Name/title of the webhook

TYPE: str

url

URL endpoint for the webhook

TYPE: str

accessToken

Access token for webhook authentication

TYPE: str | None

events

Comma-separated list of events that trigger the webhook

TYPE: str | None

excludedEvents

Comma-separated list of events excluded from the webhook

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Conflict

409

Source code in src/plankapy/v2/api/paths.py
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
def createWebhook(self, **kwargs: Unpack[Request_createWebhook]) -> Response_createWebhook:
    """Creates a webhook. Requires admin privileges.

    Args:
        name (str): Name/title of the webhook
        url (str): URL endpoint for the webhook
        accessToken (str | None): Access token for webhook authentication
        events (str | None): Comma-separated list of events that trigger the webhook
        excludedEvents (str | None): Comma-separated list of events excluded from the webhook

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Conflict: 409 
    """
    resp = self.client.post("api/webhooks", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

deleteAccessToken

deleteAccessToken() -> Response_deleteAccessToken

Logs out the current user by deleting the session and access token. Clears HTTP-only cookies if present.

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
71
72
73
74
75
76
77
78
79
80
81
82
83
84
def deleteAccessToken(self) -> Response_deleteAccessToken:
    """Logs out the current user by deleting the session and access token. Clears HTTP-only cookies if present.

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        Unauthorized: 401 
    """
    resp = self.client.delete("api/access-tokens/me")
    raise_planka_err(resp)
    return resp.json()

deleteAttachment

deleteAttachment(id: str) -> Response_deleteAttachment

Deletes an attachment. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the attachment to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
def deleteAttachment(self, id: str) -> Response_deleteAttachment:
    """Deletes an attachment. Requires board editor permissions.

    Args:
        id (str): ID of the attachment to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/attachments/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteBackgroundImage

deleteBackgroundImage(id: str) -> Response_deleteBackgroundImage

Deletes a background image. Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the background image to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
def deleteBackgroundImage(self, id: str) -> Response_deleteBackgroundImage:
    """Deletes a background image. Requires project manager permissions.

    Args:
        id (str): ID of the background image to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/background-images/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteBaseCustomFieldGroup

deleteBaseCustomFieldGroup(id: str) -> Response_deleteBaseCustomFieldGroup

Deletes a base custom field group. Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the base custom field group to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
def deleteBaseCustomFieldGroup(self, id: str) -> Response_deleteBaseCustomFieldGroup:
    """Deletes a base custom field group. Requires project manager permissions.

    Args:
        id (str): ID of the base custom field group to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/base-custom-field-groups/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteBoard

deleteBoard(id: str) -> Response_deleteBoard

Deletes a board and all its contents (lists, cards, etc.). Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the board to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
def deleteBoard(self, id: str) -> Response_deleteBoard:
    """Deletes a board and all its contents (lists, cards, etc.). Requires project manager permissions.

    Args:
        id (str): ID of the board to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/boards/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteBoardMembership

deleteBoardMembership(id: str) -> Response_deleteBoardMembership

Deletes a board membership. Users can remove their own membership, project managers can remove any membership.

PARAMETER DESCRIPTION

id

ID of the board membership to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
def deleteBoardMembership(self, id: str) -> Response_deleteBoardMembership:
    """Deletes a board membership. Users can remove their own membership, project managers can remove any membership.

    Args:
        id (str): ID of the board membership to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/board-memberships/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteCard

deleteCard(id: str) -> Response_deleteCard

Deletes a card and all its contents (tasks, attachments, etc.). Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the card to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
def deleteCard(self, id: str) -> Response_deleteCard:
    """Deletes a card and all its contents (tasks, attachments, etc.). Requires board editor permissions.

    Args:
        id (str): ID of the card to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/cards/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteCardLabel

Removes a label from a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to remove the label from)

TYPE: str

labelId

ID of the label to remove from the card)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
def deleteCardLabel(self, cardId: str, labelId: str) -> Response_deleteCardLabel:
    """Removes a label from a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to remove the label from)
        labelId (str): ID of the label to remove from the card)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/cards/{cardId}/card-labels/labelId:{labelId}")
    raise_planka_err(resp)
    return resp.json()

deleteCardMembership

deleteCardMembership(cardId: str, userId: str) -> Response_deleteCardMembership

Removes a user from a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to remove the user from)

TYPE: str

userId

ID of the user to remove from the card)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
def deleteCardMembership(self, cardId: str, userId: str) -> Response_deleteCardMembership:
    """Removes a user from a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to remove the user from)
        userId (str): ID of the user to remove from the card)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/cards/{cardId}/card-memberships/userId:{userId}")
    raise_planka_err(resp)
    return resp.json()

deleteComment

deleteComment(id: str) -> Response_deleteComment

Deletes a comment. Can be deleted by the comment author (with comment permissions) or project manager.

PARAMETER DESCRIPTION

id

ID of the comment to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
def deleteComment(self, id: str) -> Response_deleteComment:
    """Deletes a comment. Can be deleted by the comment author (with comment permissions) or project manager.

    Args:
        id (str): ID of the comment to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/comments/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteCustomField

deleteCustomField(id: str) -> Response_deleteCustomField

Deletes a custom field. Can delete the in base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

PARAMETER DESCRIPTION

id

ID of the custom field to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
def deleteCustomField(self, id: str) -> Response_deleteCustomField:
    """Deletes a custom field. Can delete the in base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

    Args:
        id (str): ID of the custom field to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/custom-fields/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteCustomFieldGroup

deleteCustomFieldGroup(id: str) -> Response_deleteCustomFieldGroup

Deletes a custom field group. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the custom field group to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
def deleteCustomFieldGroup(self, id: str) -> Response_deleteCustomFieldGroup:
    """Deletes a custom field group. Requires board editor permissions.

    Args:
        id (str): ID of the custom field group to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/custom-field-groups/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteCustomFieldValue

Deletes a custom field value for a specific card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to delete the custom field value from)

TYPE: str

customFieldGroupId

ID of the custom field group the value belongs to)

TYPE: str

customFieldId

ID of the custom field the value belongs to)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
def deleteCustomFieldValue(self, cardId: str, customFieldGroupId: str, customFieldId: str) -> Response_deleteCustomFieldValue:
    """Deletes a custom field value for a specific card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to delete the custom field value from)
        customFieldGroupId (str): ID of the custom field group the value belongs to)
        customFieldId (str): ID of the custom field the value belongs to)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/cards/{cardId}/custom-field-value/customFieldGroupId:{customFieldGroupId}:customFieldId:${customFieldId}")
    raise_planka_err(resp)
    return resp.json()

deleteLabel

deleteLabel(id: str) -> Response_deleteLabel

Deletes a label. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the label to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
def deleteLabel(self, id: str) -> Response_deleteLabel:
    """Deletes a label. Requires board editor permissions.

    Args:
        id (str): ID of the label to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/labels/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteList

deleteList(id: str) -> Response_deleteList

Deletes a list and moves its cards to a trash list. Can only delete finite lists. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the list to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
def deleteList(self, id: str) -> Response_deleteList:
    """Deletes a list and moves its cards to a trash list. Can only delete finite lists. Requires board editor permissions.

    Args:
        id (str): ID of the list to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/lists/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteNotificationService

deleteNotificationService(id: str) -> Response_deleteNotificationService

Deletes a notification service. Users can delete their own services, project managers can delete board services.

PARAMETER DESCRIPTION

id

ID of the notification service to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
def deleteNotificationService(self, id: str) -> Response_deleteNotificationService:
    """Deletes a notification service. Users can delete their own services, project managers can delete board services.

    Args:
        id (str): ID of the notification service to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/notification-services/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteProject

deleteProject(id: str) -> Response_deleteProject

Deletes a project. The project must not have any boards. Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the project to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
def deleteProject(self, id: str) -> Response_deleteProject:
    """Deletes a project. The project must not have any boards. Requires project manager permissions.

    Args:
        id (str): ID of the project to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.delete(f"api/projects/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteProjectManager

deleteProjectManager(id: str) -> Response_deleteProjectManager

Deletes a project manager. Requires admin privileges for shared projects or existing project manager permissions. Cannot remove the last project manager.

PARAMETER DESCRIPTION

id

ID of the project manager to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
def deleteProjectManager(self, id: str) -> Response_deleteProjectManager:
    """Deletes a project manager. Requires admin privileges for shared projects or existing project manager permissions. Cannot remove the last project manager.

    Args:
        id (str): ID of the project manager to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.delete(f"api/project-managers/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteTask

deleteTask(id: str) -> Response_deleteTask

Deletes a task. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the task to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
def deleteTask(self, id: str) -> Response_deleteTask:
    """Deletes a task. Requires board editor permissions.

    Args:
        id (str): ID of the task to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/tasks/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteTaskList

deleteTaskList(id: str) -> Response_deleteTaskList

Deletes a task list and all its tasks. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the task list to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
def deleteTaskList(self, id: str) -> Response_deleteTaskList:
    """Deletes a task list and all its tasks. Requires board editor permissions.

    Args:
        id (str): ID of the task list to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/task-lists/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteUser

deleteUser(id: str) -> Response_deleteUser

Deletes a user account. Cannot delete the default admin user. Requires admin privileges.

PARAMETER DESCRIPTION

id

ID of the user to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
def deleteUser(self, id: str) -> Response_deleteUser:
    """Deletes a user account. Cannot delete the default admin user. Requires admin privileges.

    Args:
        id (str): ID of the user to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/users/{id}")
    raise_planka_err(resp)
    return resp.json()

deleteWebhook

deleteWebhook(id: str) -> Response_deleteWebhook

Deletes a webhook. Requires admin privileges.

PARAMETER DESCRIPTION

id

ID of the webhook to delete)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
def deleteWebhook(self, id: str) -> Response_deleteWebhook:
    """Deletes a webhook. Requires admin privileges.

    Args:
        id (str): ID of the webhook to delete)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.delete(f"api/webhooks/{id}")
    raise_planka_err(resp)
    return resp.json()

duplicateCard

duplicateCard(id: str, **kwargs: Unpack[Request_duplicateCard]) -> Response_duplicateCard

Creates a duplicate of a card with all its contents (tasks, attachments, etc.). Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the card to duplicate)

TYPE: str

position

Position for the duplicated card within the list

TYPE: int

name

Name/title for the duplicated card

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
def duplicateCard(self, id: str, **kwargs: Unpack[Request_duplicateCard]) -> Response_duplicateCard:
    """Creates a duplicate of a card with all its contents (tasks, attachments, etc.). Requires board editor permissions.

    Args:
        id (str): ID of the card to duplicate)
        position (int): Position for the duplicated card within the list
        name (str): Name/title for the duplicated card

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/cards/{id}/duplicate", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

exchangeForAccessTokenWithOidc

Exchanges an OIDC authorization code for an access token. Creates a user if they do not exist.

PARAMETER DESCRIPTION

code

Authorization code from OIDC provider

TYPE: str

nonce

Nonce value for OIDC security

TYPE: str

withHttpOnlyToken

Whether to include HTTP-only authentication cookie

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Error

401 OIDC authentication error

Error

403 Authentication restriction

Error

409 Conflict error

Error

422 Missing required values

Error

500 OIDC configuration error

Source code in src/plankapy/v2/api/paths.py
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
def exchangeForAccessTokenWithOidc(self, **kwargs: Unpack[Request_exchangeForAccessTokenWithOidc]) -> Response_exchangeForAccessTokenWithOidc:
    """Exchanges an OIDC authorization code for an access token. Creates a user if they do not exist.

    Args:
        code (str): Authorization code from OIDC provider
        nonce (str): Nonce value for OIDC security
        withHttpOnlyToken (bool): Whether to include HTTP-only authentication cookie

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Error: 401 OIDC authentication error
        Error: 403 Authentication restriction
        Error: 409 Conflict error
        Error: 422 Missing required values
        Error: 500 OIDC configuration error
    """
    resp = self.client.post("api/access-tokens/exchange-with-oidc", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

getBoard

getBoard(id: str, **kwargs: Unpack[Request_getBoard]) -> Response_getBoard

Retrieves comprehensive board information, including lists, cards, and other related data.

PARAMETER DESCRIPTION

id

ID of the board to retrieve)

TYPE: str

subscribe

Whether to subscribe to real-time updates for this board (only for socket connections)) (optional)

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
def getBoard(self, id: str, **kwargs: Unpack[Request_getBoard]) -> Response_getBoard:
    """Retrieves comprehensive board information, including lists, cards, and other related data.

    Args:
        id (str): ID of the board to retrieve)
        subscribe (bool): Whether to subscribe to real-time updates for this board (only for socket connections)) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('subscribe',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/boards/{id}", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getBoardActions

Retrieves a list of actions (activity history) for a specific board, with pagination support.

PARAMETER DESCRIPTION

boardId

ID of the board to get actions for)

TYPE: str

beforeId

ID to get actions before (for pagination)) (optional)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
def getBoardActions(self, boardId: str, **kwargs: Unpack[Request_getBoardActions]) -> Response_getBoardActions:
    """Retrieves a list of actions (activity history) for a specific board, with pagination support.

    Args:
        boardId (str): ID of the board to get actions for)
        beforeId (str): ID to get actions before (for pagination)) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('beforeId',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/boards/{boardId}/actions", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getCard

getCard(id: str) -> Response_getCard

Retrieves comprehensive card information, including tasks, attachments, and other related data.

PARAMETER DESCRIPTION

id

ID of the card to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
def getCard(self, id: str) -> Response_getCard:
    """Retrieves comprehensive card information, including tasks, attachments, and other related data.

    Args:
        id (str): ID of the card to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/cards/{id}")
    raise_planka_err(resp)
    return resp.json()

getCardActions

Retrieves a list of actions (activity history) for a specific card, with pagination support.

PARAMETER DESCRIPTION

cardId

ID of the card to get actions for)

TYPE: str

beforeId

ID to get actions before (for pagination)) (optional)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
def getCardActions(self, cardId: str, **kwargs: Unpack[Request_getCardActions]) -> Response_getCardActions:
    """Retrieves a list of actions (activity history) for a specific card, with pagination support.

    Args:
        cardId (str): ID of the card to get actions for)
        beforeId (str): ID to get actions before (for pagination)) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('beforeId',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/cards/{cardId}/actions", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getCards

Retrieves cards from an endless list with filtering, search, and pagination support.

PARAMETER DESCRIPTION

listId

ID of the list to get cards from (must be an endless list))

TYPE: str

before

Pagination cursor (JSON object with id and listChangedAt)) (optional)

TYPE: str

search

Search term to filter cards) (optional)

TYPE: str

userIds

Comma-separated user IDs to filter by members) (optional)

TYPE: str

labelIds

Comma-separated label IDs to filter by labels) (optional)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
def getCards(self, listId: str, **kwargs: Unpack[Request_getCards]) -> Response_getCards:
    """Retrieves cards from an endless list with filtering, search, and pagination support.

    Args:
        listId (str): ID of the list to get cards from (must be an endless list))
        before (str): Pagination cursor (JSON object with id and listChangedAt)) (optional)
        search (str): Search term to filter cards) (optional)
        userIds (str): Comma-separated user IDs to filter by members) (optional)
        labelIds (str): Comma-separated label IDs to filter by labels) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('before', 'search', 'userIds', 'labelIds')
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/lists/{listId}/cards", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getComments

Retrieves comments for a card with pagination support. Requires access to the card.

PARAMETER DESCRIPTION

cardId

ID of the card to retrieve comments for)

TYPE: str

beforeId

ID to get comments before (for pagination)) (optional)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
def getComments(self, cardId: str, **kwargs: Unpack[Request_getComments]) -> Response_getComments:
    """Retrieves comments for a card with pagination support. Requires access to the card.

    Args:
        cardId (str): ID of the card to retrieve comments for)
        beforeId (str): ID to get comments before (for pagination)) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('beforeId',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/cards/{cardId}/comments", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getConfig

getConfig() -> Response_getConfig

Retrieves the application configuration.

Source code in src/plankapy/v2/api/paths.py
893
894
895
896
897
898
def getConfig(self) -> Response_getConfig:
    """Retrieves the application configuration.
    """
    resp = self.client.get("api/config")
    raise_planka_err(resp)
    return resp.json()

getCustomFieldGroup

getCustomFieldGroup(id: str) -> Response_getCustomFieldGroup

Retrieves comprehensive custom field group information, including fields and values. Requires access to the board/card.

PARAMETER DESCRIPTION

id

ID of the custom field group to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
def getCustomFieldGroup(self, id: str) -> Response_getCustomFieldGroup:
    """Retrieves comprehensive custom field group information, including fields and values. Requires access to the board/card.

    Args:
        id (str): ID of the custom field group to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/custom-field-groups/{id}")
    raise_planka_err(resp)
    return resp.json()

getList

getList(id: str) -> Response_getList

Retrieves comprehensive list information, including cards, attachments, and other related data. Requires access to the board.

PARAMETER DESCRIPTION

id

ID of the list to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
def getList(self, id: str) -> Response_getList:
    """Retrieves comprehensive list information, including cards, attachments, and other related data. Requires access to the board.

    Args:
        id (str): ID of the list to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/lists/{id}")
    raise_planka_err(resp)
    return resp.json()

getNotification

getNotification(id: str) -> Response_getNotification

Retrieves notification, including creator users. Users can only access their own notifications.

PARAMETER DESCRIPTION

id

ID of the notification to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
def getNotification(self, id: str) -> Response_getNotification:
    """Retrieves notification, including creator users. Users can only access their own notifications.

    Args:
        id (str): ID of the notification to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/notifications/{id}")
    raise_planka_err(resp)
    return resp.json()

getNotifications

getNotifications() -> Response_getNotifications

Retrieves all unread notifications for the current user, including creator users.

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
def getNotifications(self) -> Response_getNotifications:
    """Retrieves all unread notifications for the current user, including creator users.

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
    """
    resp = self.client.get("api/notifications")
    raise_planka_err(resp)
    return resp.json()

getProject

getProject(id: str) -> Response_getProject

Retrieves comprehensive project information, including boards, board memberships, and other related data.

PARAMETER DESCRIPTION

id

ID of the project to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
def getProject(self, id: str) -> Response_getProject:
    """Retrieves comprehensive project information, including boards, board memberships, and other related data.

    Args:
        id (str): ID of the project to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/projects/{id}")
    raise_planka_err(resp)
    return resp.json()

getProjects

getProjects() -> Response_getProjects

Retrieves all projects the current user has access to, including managed projects, membership projects, and shared projects (for admins).

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
def getProjects(self) -> Response_getProjects:
    """Retrieves all projects the current user has access to, including managed projects, membership projects, and shared projects (for admins).

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
    """
    resp = self.client.get("api/projects")
    raise_planka_err(resp)
    return resp.json()

getTaskList

getTaskList(id: str) -> Response_getTaskList

Retrieves task list information, including tasks. Requires access to the card.

PARAMETER DESCRIPTION

id

ID of the task list to retrieve)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
def getTaskList(self, id: str) -> Response_getTaskList:
    """Retrieves task list information, including tasks. Requires access to the card.

    Args:
        id (str): ID of the task list to retrieve)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.get(f"api/task-lists/{id}")
    raise_planka_err(resp)
    return resp.json()

getTerms

getTerms(type: Literal['general', 'extended'], **kwargs: Unpack[Request_getTerms]) -> Response_getTerms

Retrieves terms and conditions in the specified language.

PARAMETER DESCRIPTION

type

Type of terms to retrieve)

TYPE: Literal[general, extended]

language

Language code for terms localization) (optional)

TYPE: Literal[de - DE, en - US]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
def getTerms(self, type: Literal['general', 'extended'], **kwargs: Unpack[Request_getTerms]) -> Response_getTerms:
    """Retrieves terms and conditions in the specified language.

    Args:
        type (Literal['general', 'extended']): Type of terms to retrieve)
        language (Literal['de-DE', 'en-US']): Language code for terms localization) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('language',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/terms/{type}", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getUser

getUser(id: str, **kwargs: Unpack[Request_getUser]) -> Response_getUser

Retrieves a user. Use 'me' as ID to get the current user.

PARAMETER DESCRIPTION

id

ID of the user or 'me' for current user)

TYPE: str

subscribe

Whether to subscribe to real-time updates for this user (only for socket connections)) (optional)

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
def getUser(self, id: str, **kwargs: Unpack[Request_getUser]) -> Response_getUser:
    """Retrieves a user. Use 'me' as ID to get the current user.

    Args:
        id (str): ID of the user or 'me' for current user)
        subscribe (bool): Whether to subscribe to real-time updates for this user (only for socket connections)) (optional)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    valid_params = ('subscribe',)
    passed_params = {k: v for k, v in kwargs.items() if k in valid_params if isinstance(v, str | int | float)}
    resp = self.client.get(f"api/users/{id}", params=passed_params)
    raise_planka_err(resp)
    return resp.json()

getUsers

getUsers() -> Response_getUsers

Retrieves a list of all users. Requires admin or project owner privileges.

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

Source code in src/plankapy/v2/api/paths.py
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
def getUsers(self) -> Response_getUsers:
    """Retrieves a list of all users. Requires admin or project owner privileges.

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
    """
    resp = self.client.get("api/users")
    raise_planka_err(resp)
    return resp.json()

getWebhooks

getWebhooks() -> Response_getWebhooks

Retrieves a list of all configured webhooks. Requires admin privileges.

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
def getWebhooks(self) -> Response_getWebhooks:
    """Retrieves a list of all configured webhooks. Requires admin privileges.

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
    """
    resp = self.client.get("api/webhooks")
    raise_planka_err(resp)
    return resp.json()

moveListCards

moveListCards(id: str, **kwargs: Unpack[Request_moveListCards]) -> Response_moveListCards

Moves all cards from a closed list to an archive list. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the source list (must be a closed-type list))

TYPE: str

listId

ID of the target list (must be an archive-type list)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
def moveListCards(self, id: str, **kwargs: Unpack[Request_moveListCards]) -> Response_moveListCards:
    """Moves all cards from a closed list to an archive list. Requires board editor permissions.

    Args:
        id (str): ID of the source list (must be a closed-type list))
        listId (str): ID of the target list (must be an archive-type list)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.post(f"api/lists/{id}/move-cards", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

readAllNotifications

readAllNotifications() -> Response_readAllNotifications

Marks all notifications for the current user as read.

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Source code in src/plankapy/v2/api/paths.py
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
def readAllNotifications(self) -> Response_readAllNotifications:
    """Marks all notifications for the current user as read.

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
    """
    resp = self.client.post("api/notifications/read-all")
    raise_planka_err(resp)
    return resp.json()

readCardNotifications

readCardNotifications(id: str) -> Response_readCardNotifications

Marks all notifications for a specific card as read for the current user. Requires access to the card.

PARAMETER DESCRIPTION

id

ID of the card to mark notifications as read for)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
def readCardNotifications(self, id: str) -> Response_readCardNotifications:
    """Marks all notifications for a specific card as read for the current user. Requires access to the card.

    Args:
        id (str): ID of the card to mark notifications as read for)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.post(f"api/cards/{id}/read-notifications")
    raise_planka_err(resp)
    return resp.json()

revokePendingToken

Revokes a pending authentication token and cancels the authentication flow.

PARAMETER DESCRIPTION

pendingToken

Pending token to revoke

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

NotFound

404

Source code in src/plankapy/v2/api/paths.py
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
def revokePendingToken(self, **kwargs: Unpack[Request_revokePendingToken]) -> Response_revokePendingToken:
    """Revokes a pending authentication token and cancels the authentication flow.

    Args:
        pendingToken (str): Pending token to revoke

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        NotFound: 404 
    """
    resp = self.client.post("api/access-tokens/revoke-pending-token", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

sortList

sortList(id: str, **kwargs: Unpack[Request_sortList]) -> Response_sortList

Sorts all cards within a list. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the list to sort)

TYPE: str

fieldName

Field to sort cards by

TYPE: Literal[name, dueDate, createdAt]

order

Sorting order

TYPE: Literal[asc, desc]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
def sortList(self, id: str, **kwargs: Unpack[Request_sortList]) -> Response_sortList:
    """Sorts all cards within a list. Requires board editor permissions.

    Args:
        id (str): ID of the list to sort)
        fieldName (Literal['name', 'dueDate', 'createdAt']): Field to sort cards by
        order (Literal['asc', 'desc']): Sorting order

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/lists/{id}/sort", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

testNotificationService

testNotificationService(id: str) -> Response_testNotificationService

Sends a test notification to verify the notification service is working. Users can test their own services, project managers can test board services.

PARAMETER DESCRIPTION

id

ID of the notification service to test)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
def testNotificationService(self, id: str) -> Response_testNotificationService:
    """Sends a test notification to verify the notification service is working. Users can test their own services, project managers can test board services.

    Args:
        id (str): ID of the notification service to test)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.post(f"api/notification-services/{id}/test")
    raise_planka_err(resp)
    return resp.json()

updateAttachment

Updates an attachment. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the attachment to update)

TYPE: str

name

Name/title of the attachment

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
def updateAttachment(self, id: str, **kwargs: Unpack[Request_updateAttachment]) -> Response_updateAttachment:
    """Updates an attachment. Requires board editor permissions.

    Args:
        id (str): ID of the attachment to update)
        name (str): Name/title of the attachment

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/attachments/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateBaseCustomFieldGroup

Updates a base custom field group. Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the base custom field group to update)

TYPE: str

name

Name/title of the base custom field group

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
def updateBaseCustomFieldGroup(self, id: str, **kwargs: Unpack[Request_updateBaseCustomFieldGroup]) -> Response_updateBaseCustomFieldGroup:
    """Updates a base custom field group. Requires project manager permissions.

    Args:
        id (str): ID of the base custom field group to update)
        name (str): Name/title of the base custom field group

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/base-custom-field-groups/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateBoard

updateBoard(id: str, **kwargs: Unpack[Request_updateBoard]) -> Response_updateBoard

Updates a board. Project managers can update all fields, board members can only subscribe/unsubscribe.

PARAMETER DESCRIPTION

id

ID of the board to update)

TYPE: str

position

Position of the board within the project

TYPE: int

name

Name/title of the board

TYPE: str

defaultView

Default view for the board

TYPE: Literal[kanban, grid, list]

defaultCardType

Default card type for new cards

TYPE: Literal[project, story]

limitCardTypesToDefaultOne

Whether to limit card types to default one

TYPE: bool

alwaysDisplayCardCreator

Whether to always display card creators

TYPE: bool

expandTaskListsByDefault

Whether to expand task lists by default

TYPE: bool

isSubscribed

Whether the current user is subscribed to the board

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
def updateBoard(self, id: str, **kwargs: Unpack[Request_updateBoard]) -> Response_updateBoard:
    """Updates a board. Project managers can update all fields, board members can only subscribe/unsubscribe.

    Args:
        id (str): ID of the board to update)
        position (int): Position of the board within the project
        name (str): Name/title of the board
        defaultView (Literal['kanban', 'grid', 'list']): Default view for the board
        defaultCardType (Literal['project', 'story']): Default card type for new cards
        limitCardTypesToDefaultOne (bool): Whether to limit card types to default one
        alwaysDisplayCardCreator (bool): Whether to always display card creators
        expandTaskListsByDefault (bool): Whether to expand task lists by default
        isSubscribed (bool): Whether the current user is subscribed to the board

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/boards/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateBoardMembership

Updates a board membership. Requires project manager permissions.

PARAMETER DESCRIPTION

id

ID of the board membership to update)

TYPE: str

role

Role of the user in the board

TYPE: Literal[editor, viewer]

canComment

Whether the user can comment on cards (applies only to viewers)

TYPE: bool | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
def updateBoardMembership(self, id: str, **kwargs: Unpack[Request_updateBoardMembership]) -> Response_updateBoardMembership:
    """Updates a board membership. Requires project manager permissions.

    Args:
        id (str): ID of the board membership to update)
        role (Literal['editor', 'viewer']): Role of the user in the board
        canComment (bool | None): Whether the user can comment on cards (applies only to viewers)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/board-memberships/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateCard

updateCard(id: str, **kwargs: Unpack[Request_updateCard]) -> Response_updateCard

Updates a card. Board editors can update all fields, viewers can only subscribe/unsubscribe.

PARAMETER DESCRIPTION

id

ID of the card to update)

TYPE: str

boardId

ID of the board to move the card to

TYPE: str

listId

ID of the list to move the card to

TYPE: str

coverAttachmentId

ID of the attachment used as cover

TYPE: str | None

type

Type of the card

TYPE: Literal[project, story]

position

Position of the card within the list

TYPE: int | None

name

Name/title of the card

TYPE: str

description

Detailed description of the card

TYPE: str | None

dueDate

Due date for the card

TYPE: str | None

isDueCompleted

Whether the due date is completed

TYPE: bool | None

stopwatch

Stopwatch data for time tracking

TYPE: dict[str, Any] | None

isSubscribed

Whether the current user is subscribed to the card

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
def updateCard(self, id: str, **kwargs: Unpack[Request_updateCard]) -> Response_updateCard:
    """Updates a card. Board editors can update all fields, viewers can only subscribe/unsubscribe.

    Args:
        id (str): ID of the card to update)
        boardId (str): ID of the board to move the card to
        listId (str): ID of the list to move the card to
        coverAttachmentId (str | None): ID of the attachment used as cover
        type (Literal['project', 'story']): Type of the card
        position (int | None): Position of the card within the list
        name (str): Name/title of the card
        description (str | None): Detailed description of the card
        dueDate (str | None): Due date for the card
        isDueCompleted (bool | None): Whether the due date is completed
        stopwatch (dict[str, Any] | None): Stopwatch data for time tracking
        isSubscribed (bool): Whether the current user is subscribed to the card

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.patch(f"api/cards/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateComments

Updates a comment. Only the author of the comment can update it.

PARAMETER DESCRIPTION

id

ID of the comment to update)

TYPE: str

text

Content of the comment

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
def updateComments(self, id: str, **kwargs: Unpack[Request_updateComments]) -> Response_updateComments:
    """Updates a comment. Only the author of the comment can update it.

    Args:
        id (str): ID of the comment to update)
        text (str): Content of the comment

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/comments/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateCustomField

Updates a custom field. Can update in the base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

PARAMETER DESCRIPTION

id

ID of the custom field to update)

TYPE: str

position

Position of the custom field within the group

TYPE: int

name

Name/title of the custom field

TYPE: str

showOnFrontOfCard

Whether to show the field on the front of cards

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
def updateCustomField(self, id: str, **kwargs: Unpack[Request_updateCustomField]) -> Response_updateCustomField:
    """Updates a custom field. Can update in the base custom field group (requires project manager permissions) or the custom field group (requires board editor permissions).

    Args:
        id (str): ID of the custom field to update)
        position (int): Position of the custom field within the group
        name (str): Name/title of the custom field
        showOnFrontOfCard (bool): Whether to show the field on the front of cards

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/custom-fields/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateCustomFieldGroup

Updates a custom field group. Supports both board-wide and card-specific groups. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the custom field group to update)

TYPE: str

position

Position of the custom field group within the board/card

TYPE: int

name

Name/title of the custom field group

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
def updateCustomFieldGroup(self, id: str, **kwargs: Unpack[Request_updateCustomFieldGroup]) -> Response_updateCustomFieldGroup:
    """Updates a custom field group. Supports both board-wide and card-specific groups. Requires board editor permissions.

    Args:
        id (str): ID of the custom field group to update)
        position (int): Position of the custom field group within the board/card
        name (str | None): Name/title of the custom field group

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.patch(f"api/custom-field-groups/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateCustomFieldValue

Creates or updates a custom field value for a card. Requires board editor permissions.

PARAMETER DESCRIPTION

cardId

ID of the card to set the custom field value for)

TYPE: str

customFieldGroupId

ID of the custom field group the value belongs to)

TYPE: str

customFieldId

ID of the custom field the value belongs to)

TYPE: str

content

Content/value of the custom field

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
def updateCustomFieldValue(self, cardId: str, customFieldGroupId: str, customFieldId: str, **kwargs: Unpack[Request_updateCustomFieldValue]) -> Response_updateCustomFieldValue:
    """Creates or updates a custom field value for a card. Requires board editor permissions.

    Args:
        cardId (str): ID of the card to set the custom field value for)
        customFieldGroupId (str): ID of the custom field group the value belongs to)
        customFieldId (str): ID of the custom field the value belongs to)
        content (str): Content/value of the custom field

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/cards/{cardId}/custom-field-values/customFieldGroupId:{customFieldGroupId}:customFieldId:${customFieldId}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateLabel

updateLabel(id: str, **kwargs: Unpack[Request_updateLabel]) -> Response_updateLabel

Updates a label. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the label to update)

TYPE: str

position

Position of the label within the board

TYPE: int

name

Name/title of the label

TYPE: str | None

color

Color of the label

TYPE: Literal[muddy - grey, autumn - leafs, morning - sky, antique - blue, egg - yellow, desert - sand, dark - granite, fresh - salad, lagoon - blue, midnight - blue, light - orange, pumpkin - orange, light - concrete, sunny - grass, navy - blue, lilac - eyes, apricot - red, orange - peel, silver - glint, bright - moss, deep - ocean, summer - sky, berry - red, light - cocoa, grey - stone, tank - green, coral - green, sugar - plum, pink - tulip, shady - rust, wet - rock, wet - moss, turquoise - sea, lavender - fields, piggy - red, light - mud, gun - metal, modern - green, french - coast, sweet - lilac, red - burgundy, pirate - gold]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
def updateLabel(self, id: str, **kwargs: Unpack[Request_updateLabel]) -> Response_updateLabel:
    """Updates a label. Requires board editor permissions.

    Args:
        id (str): ID of the label to update)
        position (int): Position of the label within the board
        name (str | None): Name/title of the label
        color (Literal['muddy-grey', 'autumn-leafs', 'morning-sky', 'antique-blue', 'egg-yellow', 'desert-sand', 'dark-granite', 'fresh-salad', 'lagoon-blue', 'midnight-blue', 'light-orange', 'pumpkin-orange', 'light-concrete', 'sunny-grass', 'navy-blue', 'lilac-eyes', 'apricot-red', 'orange-peel', 'silver-glint', 'bright-moss', 'deep-ocean', 'summer-sky', 'berry-red', 'light-cocoa', 'grey-stone', 'tank-green', 'coral-green', 'sugar-plum', 'pink-tulip', 'shady-rust', 'wet-rock', 'wet-moss', 'turquoise-sea', 'lavender-fields', 'piggy-red', 'light-mud', 'gun-metal', 'modern-green', 'french-coast', 'sweet-lilac', 'red-burgundy', 'pirate-gold']): Color of the label

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/labels/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateList

updateList(id: str, **kwargs: Unpack[Request_updateList]) -> Response_updateList

Updates a list. Can move lists between boards. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the list to update)

TYPE: str

boardId

ID of the board to move list to

TYPE: str

type

Type/status of the list

TYPE: Literal[active, closed]

position

Position of the list within the board

TYPE: int

name

Name/title of the list

TYPE: str

color

Color for the list

TYPE: Literal[berry - red, pumpkin - orange, lagoon - blue, pink - tulip, light - mud, orange - peel, bright - moss, antique - blue, dark - granite, turquoise - sea] | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
def updateList(self, id: str, **kwargs: Unpack[Request_updateList]) -> Response_updateList:
    """Updates a list. Can move lists between boards. Requires board editor permissions.

    Args:
        id (str): ID of the list to update)
        boardId (str): ID of the board to move list to
        type (Literal['active', 'closed']): Type/status of the list
        position (int): Position of the list within the board
        name (str): Name/title of the list
        color (Literal['berry-red', 'pumpkin-orange', 'lagoon-blue', 'pink-tulip', 'light-mud', 'orange-peel', 'bright-moss', 'antique-blue', 'dark-granite', 'turquoise-sea'] | None): Color for the list

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/lists/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateNotification

Updates a notification. Users can only update their own notifications.

PARAMETER DESCRIPTION

id

ID of the notification to update)

TYPE: str

isRead

Whether the notification has been read

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
def updateNotification(self, id: str, **kwargs: Unpack[Request_updateNotification]) -> Response_updateNotification:
    """Updates a notification. Users can only update their own notifications.

    Args:
        id (str): ID of the notification to update)
        isRead (bool): Whether the notification has been read

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/notifications/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateNotificationService

Updates a notification service. Users can update their own services, project managers can update board services.

PARAMETER DESCRIPTION

id

ID of the notification service to update)

TYPE: str

url

URL endpoint for notifications

TYPE: str

format

Format for notification messages

TYPE: Literal[text, markdown, html]

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
def updateNotificationService(self, id: str, **kwargs: Unpack[Request_updateNotificationService]) -> Response_updateNotificationService:
    """Updates a notification service. Users can update their own services, project managers can update board services.

    Args:
        id (str): ID of the notification service to update)
        url (str): URL endpoint for notifications
        format (Literal['text', 'markdown', 'html']): Format for notification messages

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/notification-services/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateProject

updateProject(id: str, **kwargs: Unpack[Request_updateProject]) -> Response_updateProject

Updates a project. Accessible fields depend on user permissions.

PARAMETER DESCRIPTION

id

ID of the project to update)

TYPE: str

ownerProjectManagerId

ID of the project manager who owns the project

TYPE: str | None

backgroundImageId

ID of the background image used as background

TYPE: str | None

name

Name/title of the project

TYPE: str

description

Detailed description of the project

TYPE: str | None

backgroundType

Type of background for the project

TYPE: Literal[gradient, image] | None

backgroundGradient

Gradient background for the project

TYPE: Literal[old - lime, ocean - dive, tzepesch - style, jungle - mesh, strawberry - dust, purple - rose, sun - scream, warm - rust, sky - change, green - eyes, blue - xchange, blood - orange, sour - peel, green - ninja, algae - green, coral - reef, steel - grey, heat - waves, velvet - lounge, purple - rain, blue - steel, blueish - curve, prism - light, green - mist, red - curtain] | None

isHidden

Whether the project is hidden

TYPE: bool

isFavorite

Whether the project is marked as favorite by the current user

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
def updateProject(self, id: str, **kwargs: Unpack[Request_updateProject]) -> Response_updateProject:
    """Updates a project. Accessible fields depend on user permissions.

    Args:
        id (str): ID of the project to update)
        ownerProjectManagerId (str | None): ID of the project manager who owns the project
        backgroundImageId (str | None): ID of the background image used as background
        name (str): Name/title of the project
        description (str | None): Detailed description of the project
        backgroundType (Literal['gradient', 'image'] | None): Type of background for the project
        backgroundGradient (Literal['old-lime', 'ocean-dive', 'tzepesch-style', 'jungle-mesh', 'strawberry-dust', 'purple-rose', 'sun-scream', 'warm-rust', 'sky-change', 'green-eyes', 'blue-xchange', 'blood-orange', 'sour-peel', 'green-ninja', 'algae-green', 'coral-reef', 'steel-grey', 'heat-waves', 'velvet-lounge', 'purple-rain', 'blue-steel', 'blueish-curve', 'prism-light', 'green-mist', 'red-curtain'] | None): Gradient background for the project
        isHidden (bool): Whether the project is hidden
        isFavorite (bool): Whether the project is marked as favorite by the current user

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
        UnprocessableEntity: 422 
    """
    resp = self.client.patch(f"api/projects/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateTask

updateTask(id: str, **kwargs: Unpack[Request_updateTask]) -> Response_updateTask

Updates a task. Linked card tasks have limited update options. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the task to update)

TYPE: str

taskListId

ID of the task list to move the task to

TYPE: str

assigneeUserId

ID of the user assigned to the task (null to unassign)

TYPE: str | None

position

Position of the task within the task list

TYPE: int

name

Name/title of the task

TYPE: str

isCompleted

Whether the task is completed

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
def updateTask(self, id: str, **kwargs: Unpack[Request_updateTask]) -> Response_updateTask:
    """Updates a task. Linked card tasks have limited update options. Requires board editor permissions.

    Args:
        id (str): ID of the task to update)
        taskListId (str): ID of the task list to move the task to
        assigneeUserId (str | None): ID of the user assigned to the task (null to unassign)
        position (int): Position of the task within the task list
        name (str): Name/title of the task
        isCompleted (bool): Whether the task is completed

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/tasks/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateTaskList

Updates a task list. Requires board editor permissions.

PARAMETER DESCRIPTION

id

ID of the task list to update)

TYPE: str

position

Position of the task list within the card

TYPE: int

name

Name/title of the task list

TYPE: str

showOnFrontOfCard

Whether to show the task list on the front of the card

TYPE: bool

hideCompletedTasks

Whether to hide completed tasks

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
def updateTaskList(self, id: str, **kwargs: Unpack[Request_updateTaskList]) -> Response_updateTaskList:
    """Updates a task list. Requires board editor permissions.

    Args:
        id (str): ID of the task list to update)
        position (int): Position of the task list within the card
        name (str): Name/title of the task list
        showOnFrontOfCard (bool): Whether to show the task list on the front of the card
        hideCompletedTasks (bool): Whether to hide completed tasks

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/task-lists/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateUser

updateUser(id: str, **kwargs: Unpack[Request_updateUser]) -> Response_updateUser

Updates a user. Users can update their own profile, admins can update any user.

PARAMETER DESCRIPTION

id

ID of the user to update)

TYPE: str

role

User role defining access permissions

TYPE: Literal[admin, projectOwner, boardUser]

name

Full display name of the user

TYPE: str

avatar

Avatar of the user (only null value to remove avatar)

TYPE: dict[str, Any] | None

phone

Contact phone number

TYPE: str | None

organization

Organization or company name

TYPE: str | None

language

Preferred language for user interface and notifications

TYPE: Literal[ar - YE, bg - BG, cs - CZ, da - DK, de - DE, el - GR, en - GB, en - US, es - ES, et - EE, fa - IR, fi - FI, fr - FR, hu - HU, id - ID, it - IT, ja - JP, ko - KR, nl - NL, pl - PL, pt - BR, pt - PT, ro - RO, ru - RU, sk - SK, sr - Cyrl - RS, sr - Latn - RS, sv - SE, tr - TR, uk - UA, uz - UZ, zh - CN, zh - TW] | None

subscribeToOwnCards

Whether the user subscribes to their own cards

TYPE: bool

subscribeToCardWhenCommenting

Whether the user subscribes to cards when commenting

TYPE: bool

turnOffRecentCardHighlighting

Whether recent card highlighting is disabled

TYPE: bool

enableFavoritesByDefault

Whether favorites are enabled by default

TYPE: bool

defaultEditorMode

Default markdown editor mode

TYPE: Literal[wysiwyg, markup]

defaultHomeView

Default view mode for the home page

TYPE: Literal[gridProjects, groupedProjects]

defaultProjectsOrder

Default sort order for projects display

TYPE: Literal[byDefault, alphabetically, byCreationTime]

isDeactivated

Whether the user account is deactivated and cannot log in (for admins)

TYPE: bool

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
def updateUser(self, id: str, **kwargs: Unpack[Request_updateUser]) -> Response_updateUser:
    """Updates a user. Users can update their own profile, admins can update any user.

    Args:
        id (str): ID of the user to update)
        role (Literal['admin', 'projectOwner', 'boardUser']): User role defining access permissions
        name (str): Full display name of the user
        avatar (dict[str, Any] | None): Avatar of the user (only null value to remove avatar)
        phone (str | None): Contact phone number
        organization (str | None): Organization or company name
        language (Literal['ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-GB', 'en-US', 'es-ES', 'et-EE', 'fa-IR', 'fi-FI', 'fr-FR', 'hu-HU', 'id-ID', 'it-IT', 'ja-JP', 'ko-KR', 'nl-NL', 'pl-PL', 'pt-BR', 'pt-PT', 'ro-RO', 'ru-RU', 'sk-SK', 'sr-Cyrl-RS', 'sr-Latn-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'uz-UZ', 'zh-CN', 'zh-TW'] | None): Preferred language for user interface and notifications
        subscribeToOwnCards (bool): Whether the user subscribes to their own cards
        subscribeToCardWhenCommenting (bool): Whether the user subscribes to cards when commenting
        turnOffRecentCardHighlighting (bool): Whether recent card highlighting is disabled
        enableFavoritesByDefault (bool): Whether favorites are enabled by default
        defaultEditorMode (Literal['wysiwyg', 'markup']): Default markdown editor mode
        defaultHomeView (Literal['gridProjects', 'groupedProjects']): Default view mode for the home page
        defaultProjectsOrder (Literal['byDefault', 'alphabetically', 'byCreationTime']): Default sort order for projects display
        isDeactivated (bool): Whether the user account is deactivated and cannot log in (for admins)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.patch(f"api/users/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateUserAvatar

updateUserAvatar(id: str, mime_type: str | None = None, **kwargs: Unpack[Request_updateUserAvatar]) -> Response_updateUserAvatar

Updates a user's avatar image. Users can update their own avatar, admins can update any user's avatar.

PARAMETER DESCRIPTION

id

ID of the user whose avatar to update)

TYPE: str

mime_type

Optional mime type for file upload

TYPE: str DEFAULT: None

file

Avatar image file (must be an image format)

TYPE: bytes

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

UnprocessableEntity

422

Source code in src/plankapy/v2/api/paths.py
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
def updateUserAvatar(self, id: str, mime_type: str | None=None ,**kwargs: Unpack[Request_updateUserAvatar]) -> Response_updateUserAvatar:
    """Updates a user's avatar image. Users can update their own avatar, admins can update any user's avatar.

    Args:
        id (str): ID of the user whose avatar to update)
        mime_type (str): Optional mime type for file upload
        file (bytes): Avatar image file (must be an image format)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
        UnprocessableEntity: 422 
    """
    resp = self.client.post(f"api/users/{id}/avatar", 
        files={'file': ('avatar', kwargs['file'], mime_type)}, 
    )
    raise_planka_err(resp)
    return resp.json()

updateUserEmail

Updates a user's email address. Users must provide current password when updating their own email. Admins can update any user's email without a password.

PARAMETER DESCRIPTION

id

ID of the user whose email to update)

TYPE: str

email

Email address for login and notifications

TYPE: str

currentPassword

Current password (required when updating own email)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
def updateUserEmail(self, id: str, **kwargs: Unpack[Request_updateUserEmail]) -> Response_updateUserEmail:
    """Updates a user's email address. Users must provide current password when updating their own email. Admins can update any user's email without a password.

    Args:
        id (str): ID of the user whose email to update)
        email (str): Email address for login and notifications
        currentPassword (str): Current password (required when updating own email)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.patch(f"api/users/{id}/email", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateUserPassword

Updates a user's password. Users must provide a current password when updating their own password. Admins can update any user's password without the current password. Returns a new access token when updating own password.

PARAMETER DESCRIPTION

id

ID of the user whose password to update)

TYPE: str

password

Password (must meet password requirements)

TYPE: str

currentPassword

Current password (required when updating own password)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Source code in src/plankapy/v2/api/paths.py
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
def updateUserPassword(self, id: str, **kwargs: Unpack[Request_updateUserPassword]) -> Response_updateUserPassword:
    """Updates a user's password. Users must provide a current password when updating their own password. Admins can update any user's password without the current password. Returns a new access token when updating own password.

    Args:
        id (str): ID of the user whose password to update)
        password (str): Password (must meet password requirements)
        currentPassword (str): Current password (required when updating own password)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/users/{id}/password", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateUserUsername

Updates a user's username. Users must provide a current password when updating their own username (unless they are SSO users with oidcIgnoreUsername enabled). Admins can update any user's username without the current password.

PARAMETER DESCRIPTION

id

ID of the user whose username to update)

TYPE: str

username

Unique username for user identification

TYPE: str | None

currentPassword

Current password (required when updating own username)

TYPE: str

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

Forbidden

403

NotFound

404

Conflict

409

Source code in src/plankapy/v2/api/paths.py
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
def updateUserUsername(self, id: str, **kwargs: Unpack[Request_updateUserUsername]) -> Response_updateUserUsername:
    """Updates a user's username. Users must provide a current password when updating their own username (unless they are SSO users with `oidcIgnoreUsername` enabled). Admins can update any user's username without the current password.

    Args:
        id (str): ID of the user whose username to update)
        username (str | None): Unique username for user identification
        currentPassword (str): Current password (required when updating own username)

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        Forbidden: 403 
        NotFound: 404 
        Conflict: 409 
    """
    resp = self.client.patch(f"api/users/{id}/username", json=kwargs)
    raise_planka_err(resp)
    return resp.json()

updateWebhook

updateWebhook(id: str, **kwargs: Unpack[Request_updateWebhook]) -> Response_updateWebhook

Updates a webhook. Requires admin privileges.

PARAMETER DESCRIPTION

id

ID of the webhook to update)

TYPE: str

name

Name/title of the webhook

TYPE: str

url

URL endpoint for the webhook

TYPE: str

accessToken

Access token for webhook authentication

TYPE: str | None

events

Comma-separated list of events that trigger the webhook

TYPE: str | None

excludedEvents

Comma-separated list of events excluded from the webhook

TYPE: str | None

Note

All status errors are instances of httpx.HTTPStatusError at runtime (response.raise_for_status()). If a matching PlankaError exists, it will be raised (see api.errors) Planka internal status codes and names are included here for disambiguation

RAISES DESCRIPTION
ValidationError

400

Unauthorized

401

NotFound

404

Source code in src/plankapy/v2/api/paths.py
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
def updateWebhook(self, id: str, **kwargs: Unpack[Request_updateWebhook]) -> Response_updateWebhook:
    """Updates a webhook. Requires admin privileges.

    Args:
        id (str): ID of the webhook to update)
        name (str): Name/title of the webhook
        url (str): URL endpoint for the webhook
        accessToken (str | None): Access token for webhook authentication
        events (str | None): Comma-separated list of events that trigger the webhook
        excludedEvents (str | None): Comma-separated list of events excluded from the webhook

    Note:
        All status errors are instances of `httpx.HTTPStatusError` at runtime (`response.raise_for_status()`). 
        If a matching PlankaError exists, it will be raised (see `api.errors`) 
        Planka internal status codes and names are included here for disambiguation

    Raises:
        ValidationError: 400 
        Unauthorized: 401 
        NotFound: 404 
    """
    resp = self.client.patch(f"api/webhooks/{id}", json=kwargs)
    raise_planka_err(resp)
    return resp.json()