Create multiple job targets at once

Request

Creates new targets for the specified job and returns the job target IDs.

Security
OAuth2
Path
idinteger, (int64)required

The ID for the job target, for example 39605.

Bodyapplication/jsonrequired

The request containing target information.

itemsArray of objects or null(EntityPostResource)

Gets or sets the list of items.

curl -i -X POST \
  'https://your-server/api/jobs/{id}/targets/bulk' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "items": [
      {
        "id": 0,
        "identifier": "string",
        "properties": {
          "property1": {},
          "property2": {}
        },
        "relations": {
          "property1": {
            "parents": [
              {
                "properties": {
                  "property1": {},
                  "property2": {}
                },
                "renditions": {
                  "property1": {},
                  "property2": {}
                },
                "permissions": [
                  null
                ],
                "identifier": "string",
                "href": "string",
                "filename_properties": [
                  null
                ],
                "title": "string",
                "templated": false
              }
            ],
            "parent": {
              "properties": {
                "property1": {},
                "property2": {}
              },
              "renditions": {
                "property1": {},
                "property2": {}
              },
              "permissions": [
                "string"
              ],
              "identifier": "string",
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            },
            "children": [
              {
                "properties": {
                  "property1": {},
                  "property2": {}
                },
                "renditions": {
                  "property1": {},
                  "property2": {}
                },
                "permissions": [
                  null
                ],
                "identifier": "string",
                "href": "string",
                "filename_properties": [
                  null
                ],
                "title": "string",
                "templated": false
              }
            ],
            "child": {
              "properties": {
                "property1": {},
                "property2": {}
              },
              "renditions": {
                "property1": {},
                "property2": {}
              },
              "permissions": [
                "string"
              ],
              "identifier": "string",
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            },
            "inherits_security": true,
            "parent_total": 0,
            "child_total": 0,
            "self": {
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            }
          },
          "property2": {
            "parents": [
              {
                "properties": {
                  "property1": {},
                  "property2": {}
                },
                "renditions": {
                  "property1": {},
                  "property2": {}
                },
                "permissions": [
                  null
                ],
                "identifier": "string",
                "href": "string",
                "filename_properties": [
                  null
                ],
                "title": "string",
                "templated": false
              }
            ],
            "parent": {
              "properties": {
                "property1": {},
                "property2": {}
              },
              "renditions": {
                "property1": {},
                "property2": {}
              },
              "permissions": [
                "string"
              ],
              "identifier": "string",
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            },
            "children": [
              {
                "properties": {
                  "property1": {},
                  "property2": {}
                },
                "renditions": {
                  "property1": {},
                  "property2": {}
                },
                "permissions": [
                  null
                ],
                "identifier": "string",
                "href": "string",
                "filename_properties": [
                  null
                ],
                "title": "string",
                "templated": false
              }
            ],
            "child": {
              "properties": {
                "property1": {},
                "property2": {}
              },
              "renditions": {
                "property1": {},
                "property2": {}
              },
              "permissions": [
                "string"
              ],
              "identifier": "string",
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            },
            "inherits_security": true,
            "parent_total": 0,
            "child_total": 0,
            "self": {
              "href": "string",
              "filename_properties": [
                "string"
              ],
              "title": "string",
              "templated": false
            }
          }
        },
        "is_root_taxonomy_item": true,
        "is_path_root": true,
        "entitydefinition": {
          "href": "string",
          "filename_properties": [
            "string"
          ],
          "title": "string",
          "templated": false
        },
        "is_system_owned": true,
        "inherits_security": true,
        "self": {
          "href": "string",
          "filename_properties": [
            "string"
          ],
          "title": "string",
          "templated": false
        }
      }
    ]
  }'

Responses

Successful operation.

Bodyapplication/json
itemsArray of objects or null(EntityCreatedResource)

Gets or sets the list of items.

total_itemsinteger or null, (int64)

Gets or sets the total number of items.

returned_itemsinteger or null, (int64)

Gets or sets the number of returned items.

offsetinteger or null, (int32)

Gets or sets the offset of the items.

nextobject(Link)

Represents a link to a resource.

previousobject(Link)

Represents a link to a resource.

identifierstring or null

Gets or sets the identifier of the resource.

selfobject(Link)

Represents a link to a resource.

property name*anyadditional property
Response
{ "items": [ { … } ], "total_items": 0, "returned_items": 0, "offset": 0, "next": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "previous": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "identifier": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "property1": null, "property2": null }