Help & Support
Follow

LeanKit API: Remove an Assigned User From a Card

This method removes a User's assignment from a Card.

Request URL (POST):

https://{accountname}.leankit.com/kanban/api/board/{boardId}/UnassignUserLite

Sample request:

https://myaccount.leankit.com/kanban/api/board/256064019/UnassignUserLite
{
    "CardId":256395058,
    "UserId":62984826
}

Sample response:

{
  "ReplyData": [
    {
      "BoardVersion": 48,
      "CardDTO": {
        "SystemType": "Card",
        "BoardId": 256064019,
        "BoardTitle": "Sample Board",
        "LaneId": 256392761,
        "LaneTitle": "Ready to Start",
        "Title": "Sample Card 1",
        "Description": "Updating the card description",
        "Type": {
          "Id": 256291536
        },
        "TypeId": 256291536,
        "Priority": 2,
        "PriorityText": "High",
        "TypeName": "New Feature",
        "TypeIconPath": null,
        "TypeColorHex": "#93E0E6",
        "Size": 4,
        "Active": false,
        "Color": "#93E0E6",
        "Icon": "",
        "Version": 19,
        "AssignedUsers": [],
        "IsBlocked": false,
        "BlockReason": null,
        "BlockStateChangeDate": null,
        "Index": 0,
        "StartDate": null,
        "DueDate": null,
        "ExternalSystemName": null,
        "ExternalSystemUrl": null,
        "ExternalCardID": "AZ-1023",
        "ExternalCardIdPrefix": null,
        "Tags": "web,ux",
        "ParentBoardId": 0,
        "ParentTaskboardId": null,
        "CountOfOldCards": 0,
        "CardContexts": [],
        "LastMove": "10/14/2015 03:51:46 PM",
        "LastActivity": "10/15/2015 02:56:56 PM",
        "DateArchived": null,
        "CommentsCount": 4,
        "LastComment": "10/14/2015",
        "AttachmentsCount": 0,
        "LastAttachment": null,
        "CreateDate": "10/14/2015",
        "ActualStartDate": "10/14/2015 7:12:54 PM",
        "ActualFinishDate": null,
        "AssignedUserName": "",
        "AssignedUserId": 0,
        "AssignedUserIds": [],
        "GravatarLink": "",
        "SmallGravatarLink": "",
        "IsOlderThanXDays": false,
        "Id": 256395058,
        "DrillThroughBoardId": null,
        "HasDrillThroughBoard": false,
        "DrillThroughStatistics": null,
        "DrillThroughCompletionPercent": null,
        "DrillThroughProgressTotal": null,
        "DrillThroughProgressComplete": null,
        "DrillThroughProgressSizeComplete": null,
        "DrillThroughProgressSizeTotal": null,
        "ClassOfServiceId": 0,
        "ClassOfServiceTitle": null,
        "ClassOfServiceIconPath": null,
        "ClassOfServiceColorHex": null,
        "ClassOfServiceCustomIconName": null,
        "ClassOfServiceCustomIconColor": null,
        "CardTypeIconColor": null,
        "CardTypeIconName": null,
        "CurrentTaskBoardId": null,
        "TaskBoardCompletionPercent": 0,
        "TaskBoardCompletedCardCount": 0,
        "TaskBoardCompletedCardSize": 0,
        "TaskBoardTotalCards": 0,
        "TaskBoardTotalSize": 0,
        "CurrentContext": null,
        "ParentCardId": null
      },
      "CardSubscription": null
    }
  ],
  "ReplyCode": 202,
  "ReplyText": "The User was successfully unassigned."
}

 

 

 

 

 

 

Doc ID: 1191983323

Have more questions? Submit a request