Batch API

For an overview of how to make batch API requests, see batch requests.


Batch

PropertyTypeDescription
status_codeintegerThe HTTP status code that the invoked endpoint returned.
headersobjectA map of HTTP headers specific to this result. This is primarily used for returning a Location header to accompany a 201 Created result. The parent HTTP response will contain all common headers.
bodyobjectThe JSON body that the invoked endpoint returned.

Example JSON for Batch:

{
  "status_code": 200,
  "headers": {
    "location": "/tasks/1234"
  },
  "body": {
    "data": {
      "gid": "1967",
      "completed": false,
      "name": "Hello, world!",
      "notes": "How are you today?"
    }
  }
}
Asana Home
Asana helps you manage projects, focus on what's important, and organize work in one place for seamless collaboration.
© 2023 Asana, Inc.