Approval Workflow

Bulk updates approval workflows

Changed on

Updates several approval workflows in one request. Requires the JSON:API bulk extension headers (Content-Type and Accept: application/vnd.api+json; ext=bulk). The same headers on POST /api/v2/approval_workflows create several workflows at once and respond with a collection. Validation errors carry the index of the failing item in meta.bulk_index.

patch/api/v2/approval_workflows

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/approval_workflows
  • Auth
    none declared

Request body

Response

Collection of approval workflows

Example response

{
  "data": [
    {
      "id": "169435",
      "type": "approval_workflows",
      "attributes": {
        "approval_requirement_id": 3,
        "target_type_id": 2,
        "dynamic_approver_ids": [
          "2"
        ],
        "dynamic_subscriber_ids": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": "109"
          }
        },
        "event": {
          "data": null
        },
        "approval_policy": {
          "data": {
            "type": "approval_policies",
            "id": "7"
          }
        },
        "approvers": {
          "data": [
            {
              "type": "people",
              "id": "8"
            }
          ]
        },
        "subscribers": {
          "data": []
        }
      }
    }
  ],
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 1,
    "page_size": 30,
    "max_page_size": 200
  },
  "included": [
    {
      "id": "7",
      "type": "approval_policies",
      "attributes": {
        "name": "Budget approvals"
      }
    }
  ]
}

Changes

    • warning

      added the new bad_decimal_format enum value to the // response property for the response status

    • warning

      added the new non_finite_number enum value to the // response property for the response status

    • warning

      added the new null_bytes_in_params enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added

    This list may be incomplete.