Asana · Schema

BatchRequestAction

CollaborationProductivityProject ManagementProjectsTask ManagementTasksWorkflow

Properties

Name Type Description
relative_path string The path of the desired endpoint relative to the API's base URL.
method string The HTTP method for the action.
data object For POST/PUT requests, an object containing the data for the action.
options object Pagination and other options for the action.
View JSON Schema on GitHub

JSON Schema

asana-batchrequestaction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BatchRequestAction",
  "title": "BatchRequestAction",
  "type": "object",
  "properties": {
    "relative_path": {
      "type": "string",
      "description": "The path of the desired endpoint relative to the API's base URL.",
      "example": "/tasks/123"
    },
    "method": {
      "type": "string",
      "description": "The HTTP method for the action.",
      "enum": [
        "get",
        "post",
        "put",
        "delete",
        "patch"
      ],
      "example": "get"
    },
    "data": {
      "type": "object",
      "description": "For POST/PUT requests, an object containing the data for the action."
    },
    "options": {
      "type": "object",
      "description": "Pagination and other options for the action.",
      "properties": {
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "string"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "relative_path",
    "method"
  ]
}