Add Multiple Records to a Child Entity Through a Batch Operation

You can manage, create, and edit delete groups using the Delete Groups REST resource. The resource allows you to add and remove items, structures, components, change orders, and new item requests to delete groups.

Note:

See the Privileges topic for access requirements for this REST operation.

In this scenario, you submit a single POST request to add multiple records to a delete group child entity like items, structures, components, change orders or new item requests.

Example URL

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/"

Example Request

Here's an example of the request body in JSON format:

{
  "parts": [
    {
      "id": "part1",
      "path": "/deleteGroups/300100597873441/child/items",
      "operation": "create",
      "payload": {
        "InventoryItemId": 100105307143930,
        "OrganizationId": 204
      }
    },
    {
      "id": "part2",
      "path": "/deleteGroups/300100597873441/child/items",
      "operation": "create",
      "payload": {
        "InventoryItemId": 100105307219849,
        "OrganizationId": 204
      }
    }
  ]
}

Example Response

Here's an example of the response body in JSON format:

{
    "parts": [
        {
            "id": "part1",
            "path": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items",
            "operation": "create",
            "payload": {
                "CreatedBy": "PIMQA",
                "CreationDate": "2023-12-25T07:18:05.001+00:00",
                "DeleteEntitySequenceId": 300100597944631,
                "DeleteGroupSequenceId": 300100597873441,
                "DeleteStatusType": 1,
                "LastUpdateDate": "2023-12-25T07:18:05.065+00:00",
                "LastUpdateLogin": "0C4F67A12D08FE10E063026415AC6A1C",
                "LastUpdatedBy": "PIMQA",
                "InventoryItemId": 100105307143930,
                "OrganizationId": 204,
                "Item": "AKIDC13PDAMLITEM01_01",
                "Organization": "V1",
                "Description": "AKIDC13PDAMLITEM01_01",
                "DeleteStatusTypeName": "Open",
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944631",
                        "name": "items",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944631",
                        "name": "items",
                        "kind": "item"
                    },
                    {
                        "rel": "parent",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441",
                        "name": "deleteGroups",
                        "kind": "item"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944631/child/errors",
                        "name": "errors",
                        "kind": "collection"
                    }
                ]
            }
        },
        {
            "id": "part2",
            "path": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items",
            "operation": "create",
            "payload": {
                "CreatedBy": "PIMQA",
                "CreationDate": "2023-12-25T07:18:05.033+00:00",
                "DeleteEntitySequenceId": 300100597944633,
                "DeleteGroupSequenceId": 300100597873441,
                "DeleteStatusType": 1,
                "LastUpdateDate": "2023-12-25T07:18:05.065+00:00",
                "LastUpdateLogin": "0C4F67A12D08FE10E063026415AC6A1C",
                "LastUpdatedBy": "PIMQA",
                "InventoryItemId": 100105307219849,
                "OrganizationId": 204,
                "Item": "AKIDC13PDAMLITEM01_01",
                "Organization": "V1",
                "Description": "AKIDC13PDAMLITEM01_01",
                "DeleteStatusTypeName": "Open",
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944633",
                        "name": "items",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944633",
                        "name": "items",
                        "kind": "item"
                    },
                    {
                        "rel": "parent",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441",
                        "name": "deleteGroups",
                        "kind": "item"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/deleteGroups/300100597873441/child/items/300100597944633/child/errors",
                        "name": "errors",
                        "kind": "collection"
                    }
                ]
            }
        }
    ]
}