GET /v3/workflow-section

List workflow sections. Return order is by priority.

Acl Action: WORKFLOWSECTION list

Arguments:

  • page - integer: Page number for paginated results.
  • per_page - int: Per page offset for pagination.

Example Response:

{
    "items": [
        {
            "id": "1",
            "uuid": "AAAA-1234",
            "slug": "new",
            "name": "New",
            "status": "1",
            "is_web": "0",
            "is_print": "1",
            "priority": "0",
            "srn": "srn:tsn:ceo-core\/workflowSection:AAAA-1234"
        },
        {
            "id": "2",
            "uuid": "BBBB-1234",
            "slug": "to-copy",
            "name": "To Copy",
            "status": "1",
            "is_web": "1",
            "is_print": "1",
            "priority": "1",
            "srn": "srn:tsn:ceo-core\/workflowSection:BBBB-1234"
        }
    ],
    "first": 1,
    "before": 1,
    "current": 1,
    "last": 1,
    "next": 1,
    "total_pages": 1,
    "total_items": 2,
    "limit": 50
}

GET /v3/workflow-section/{uuid}

Get a single workflow sectionitem

Acl Action: WORKFLOWSECTION get

Example Response:

[
    {
        "id": "1",
        "uuid": "AAAA-1234",
        "slug": "new",
        "name": "New",
        "status": "1",
        "is_web": "0",
        "is_print": "1",
        "priority": "0",
        "srn": "srn:tsn:ceo-core\/workflowSection:AAAA-1234"
    }
]

POST /v3/workflow-section

Create new workflow section. Priority works in reverse, so the lower numbers will appear first.

Acl Action: WORKFLOWSECTION post

Example Request:

{
    'slug': 'my-section',
    'name': 'My Section'
    'status': 1,
    'is_web': 1,
    'is_print': 0
    'priority': 10
}

Example Response: See GET /v3/workflow-section/{uuid}

PUT /v3/workflow-section/{uuid}

Update workflow section.

Acl Action: WORKFLOWSECTION update

Example Request: See POST /v3/workflow-section

Example Response: See POST /v3/workflow-section

PUT /v3/workflow-section/priority

Update all workflow sections priority order. Priority is set according to placement in posted array.

Acl Action: WORKFLOWSECTION priority

Arguments:

  • name - type: Description

Example Request:

[
    "AAAA-1234",
    "BBBB-1234",
    "CCCC-1234"
]

Example Response: See GET /v3/workflow-section

DELETE /v3/workflow-section/{uuid}[,{uuid}]

Remove one or more workflow sections.

Acl Action: WORKFLOWSECTION delete

Example Response:

{
    "message": "ok"
}