Cards

Duplicate card

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

post/cards/{id}/duplicate

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/cards/{id}/duplicate
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key

Path parameters

idstring required
Example:1357158568008091264

ID of the card to duplicate

Request body

boardIdstring

ID of the board to duplicate the card to

listIdstring

ID of the list to duplicate the card to

positionnumber nullable

Position for the duplicated card within the list

namestring nullable

Name/title for the duplicated card

Example request

{
  "boardId": "1357158568008091265",
  "listId": "1357158568008091266",
  "position": 65536,
  "name": "Implement user authentication (copy)"
}

Response

Card duplicated successfully

Example response

{
  "item": {
    "id": "1357158568008091264",
    "boardId": "1357158568008091265",
    "listId": "1357158568008091266",
    "creatorUserId": "1357158568008091267",
    "prevListId": "1357158568008091268",
    "coverAttachmentId": "1357158568008091269",
    "type": "project",
    "position": 65536,
    "name": "Implement user authentication",
    "description": "Add JWT-based authentication system...",
    "dueDate": "2024-01-01T00:00:00.000Z",
    "stopwatch": {
      "startedAt": "2024-01-01T00:00:00.000Z",
      "total": 3600
    },
    "commentsTotal": 100,
    "listChangedAt": "2024-01-01T00:00:00.000Z",
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z"
  },
  "included": {
    "cardMemberships": [
      {
        "id": "1357158568008091264",
        "cardId": "1357158568008091265",
        "userId": "1357158568008091266",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "cardLabels": [
      {
        "id": "1357158568008091264",
        "cardId": "1357158568008091265",
        "labelId": "1357158568008091266",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "taskLists": [
      {
        "id": "1357158568008091264",
        "cardId": "1357158568008091265",
        "position": 65536,
        "name": "Development Tasks",
        "showOnFrontOfCard": true,
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "tasks": [
      {
        "id": "1357158568008091264",
        "taskListId": "1357158568008091265",
        "linkedCardId": "1357158568008091266",
        "assigneeUserId": "1357158568008091267",
        "position": 65536,
        "name": "Write unit tests",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "attachments": [
      {
        "id": "1357158568008091264",
        "cardId": "1357158568008091265",
        "creatorUserId": "1357158568008091266",
        "type": "link",
        "data": {
          "url": "https://google.com/search?q=planka",
          "faviconUrl": "https://storage.example.com/favicons/google.com.png"
        },
        "name": "Important Attachment",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "customFieldGroups": [
      {
        "id": "1357158568008091264",
        "boardId": "1357158568008091265",
        "cardId": "1357158568008091266",
        "baseCustomFieldGroupId": "1357158568008091267",
        "position": 65536,
        "name": "Properties",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "customFields": [
      {
        "id": "1357158568008091264",
        "baseCustomFieldGroupId": "1357158568008091265",
        "customFieldGroupId": "1357158568008091266",
        "position": 65536,
        "name": "Priority",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "customFieldValues": [
      {
        "id": "1357158568008091264",
        "cardId": "1357158568008091265",
        "customFieldGroupId": "1357158568008091266",
        "customFieldId": "1357158568008091267",
        "content": "High Priority",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.