Action

Delete Action example

The below examples illustrate a number of use cases to delete a single Action. 

Deletes in Fluid are non permanent, Actions that are deleted are internally marked as archived and are typically no longer included as part of the live data set that is used within Fluid.



Delete single Action

cURL

curl --user username:patToken --location --request DELETE 'http://organisation.fluid.work/rest/api/action/4417?fields=All&expand=All' \
--header 'Content-Type: application/json' \

Sample Response

Status code: 200

JSON

{
    "fields": {
        "assignee": [
            {
                "id": 603,
                "guid": "f1cb6467-0262-4539-9148-7b869defd817",
                "name": "David Burt",
                "userName": "david.burt",
                "email": "dump18@fluidbsg.com"
            }
        ],
        "attachmentCount": 0,
        "author": {
            "id": 603,
            "guid": "f1cb6467-0262-4539-9148-7b869defd817",
            "name": "David Burt",
            "userName": "david.burt",
            "email": "dump18@fluidbsg.com"
        },
        "boardCategory": 0,
        "boardId": 0,
        "boardGuid": "7505a102-93fc-4465-a23b-2eb6303f7f71",
        "boardTitle": "Board Title",
        "businessValue": 0,
        "chatCount": 0,
        "contentType": "Process",
        "createDate": "2024-02-16T18:34:40.0000000",
        "description": "Description",
        "descriptionHtml": "Description",
        "dueDate": null,
        "endDate": null,
        "isClosed": false,
        "isCalculated": false,
        "isOwner": true,
        "modifiedBy": {
            "id": 603,
            "guid": "f1cb6467-0262-4539-9148-7b869defd817",
            "name": "David Burt",
            "userName": "david.burt",
            "email": "dump18@fluidbsg.com"
        },
        "modifiedDate": "2024-02-16T18:34:40.0000000",
        "principalGuid": "7505a102-93fc-4465-a23b-2eb6303f7f71",
        "shortCode": "BE-93",
        "startDate": null,
        "status": "Not Started",
        "statusCode": 1,
        "taskType": "Task",
        "title": "Sample Title",
        "titleRichText": "Sample Title",
        "titleHtml": "Sample Title"
    },
    "id": 4417,
    "guid": "289df528-e74d-4b0f-a69f-455ffebd5905",
    "url": "https://organisation.fluid.work/rest/api/action/4417"
}

Delete single Action - Guid

cURL

curl --user username:patToken --location --request DELETE 'http://organisation.fluid.work/rest/api/action/289df528-e74d-4b0f-a69f-455ffebd5905?fields=All&expand=All' \
--header 'Content-Type: application/json' \

Sample Response

Status code: 200

JSON

{
    "fields": {
        "assignee": [
            {
                "id": 603,
                "guid": "f1cb6467-0262-4539-9148-7b869defd817",
                "name": "David Burt",
                "userName": "david.burt",
                "email": "dump18@fluidbsg.com"
            }
        ],
        "attachmentCount": 0,
        "author": {
            "id": 603,
            "guid": "f1cb6467-0262-4539-9148-7b869defd817",
            "name": "David Burt",
            "userName": "david.burt",
            "email": "dump18@fluidbsg.com"
        },
        "boardCategory": 0,
        "boardId": 0,
        "boardGuid": "7505a102-93fc-4465-a23b-2eb6303f7f71",
        "boardTitle": "Board Title",
        "businessValue": 0,
        "chatCount": 0,
        "contentType": "Process",
        "createDate": "2024-02-16T18:34:40.0000000",
        "description": "Description",
        "descriptionHtml": "Description",
        "dueDate": null,
        "endDate": null,
        "isClosed": false,
        "isCalculated": false,
        "isOwner": true,
        "modifiedBy": {
            "id": 603,
            "guid": "f1cb6467-0262-4539-9148-7b869defd817",
            "name": "David Burt",
            "userName": "david.burt",
            "email": "dump18@fluidbsg.com"
        },
        "modifiedDate": "2024-02-16T18:34:40.0000000",
        "principalGuid": "7505a102-93fc-4465-a23b-2eb6303f7f71",
        "shortCode": "BE-93",
        "startDate": null,
        "status": "Not Started",
        "statusCode": 1,
        "taskType": "Task",
        "title": "Sample Title",
        "titleRichText": "Sample Title",
        "titleHtml": "Sample Title"
    },
    "id": 4417,
    "guid": "289df528-e74d-4b0f-a69f-455ffebd5905",
    "url": "https://organisation.fluid.work/rest/api/action/4417"
}

Was this article helpful?