Create allocations

post

/fscmRestApi/resources/11.13.18.05/backlogManagementPlans/{BmRunId}/child/allocations

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : backlogManagementPlans-allocations-item-response
Type: object
Show Source
Back to Top

Examples

Example 1 describes how to create allocation details for the backlog management plan. Example 2 describes how to upload bulk allocation data.

Example 1: Create Allocations

This example describes how to create allocation details for the backlog management plan.

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource.

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

Example 1 Request Body

The following example includes the contents of the request body in JSON format.
{
"BmRunId": -1,
"AllocationDate": "2030-01-21",
"Level1AttributeName": "BLM-All",
"Level2AttributeName": "BLM-CustParentGrp",
"Level3AttributeName": "BLM-CustGrp",
"Level1AttributeValName": "ALL",
"Level2AttributeValName": "BLM-North",
"Level3AttributeValName": "BLM-NorthWest",
"InventoryItemName": "BLM-ALLOC-JI'WithDiffAllocation",
"OrganizationName": "Denver Manufacturing_BLM",
"AllocUserDef": 111
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:
{
    "BmRunId": -1,
    "InventoryItemId": 26470541,
    "OrganizationId": 45639,
    "AttributeId": 300100544207363,
    "AttributeValueId": 2406606,
    "Level1AttributeValueId": 2406598,
    "Level2AttributeValueId": 2406618,
    "Level3AttributeValueId": 2406606,
    "AllocationDate": "2030-01-21",
    "AllocSup": null,
    "ConsumSup": null,
    "AvailSup": null,
    "CumlAvailSup": null,
    "GrossAlloc": null,
    "GrossConsum": null,
    "GrossAvail": null,
    "GrossCumlAvail": null,
    "AllocSteal": null,
    "GrossAllocSteal": null,
    "AvailSteal": null,
    "NetWeekSup": null,
    "Level1AttributeName": "BLM-All",
    "Level2AttributeName": "BLM-CustParentGrp",
    "Level3AttributeName": "BLM-CustGrp",
    "Level1AttributeValName": "ALL",
    "Level2AttributeValName": "BLM-North",
    "Level3AttributeValName": "BLM-NorthWest",
    "InventoryItemName": "BLM-ALLOC-JI'WithDiffAllocation",
    "OrganizationName": "Denver Manufacturing_BLM",
    "OrganizationCode": "BLM:BLM_M1",
    "LastUpdatedBy": "BLM_ALL",
    "LastUpdateLogin": "C9C4E24FCDC34372E0534005F00A306C",
    "LastUpdateDate": "2021-08-25T12:11:41.292+00:00",
    "CreatedBy": "BLM_ALL",
    "CreationDate": "2021-08-25T12:11:41+00:00",
    "AllocUserDef": 111,
    "ESSJobId": null,
    "Message": null,
    "UpdateMode": null,
    "links": [
        {
            "rel": "self",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000000000193E88D0000000EACED00057708000000000000B2470000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708000110F09A559A030000000EACED00057708000000000024B8CE0000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B941C4E40078",
            "name": "allocations",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000000000193E88D0000000EACED00057708000000000000B2470000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708000110F09A559A030000000EACED00057708000000000024B8CE0000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B941C4E40078",
            "name": "allocations",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1",
            "name": "backlogManagementPlans",
            "kind": "item"
        },
        {
            "rel": "enclosure",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000000000193E88D0000000EACED00057708000000000000B2470000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708000110F09A559A030000000EACED00057708000000000024B8CE0000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B941C4E40078/enclosure/UpdateAsync",
            "name": "UpdateAsync",
            "kind": "other"
        }
    ]
}

Example 2: Upload Bulk Allocation Data

This example describes how to upload bulk allocation data.

It includes the contents of the request body in JSON format that includes the UpdateAsync and UpdateMode attribute. You can use JSON format to encode [{"AllocUserDef":"{11,13,17,24,56,78,89,100,23,45,67,89,90,,,,,,,30}","OrgCode":"BLM:BLM_M1","Level2AttrValName":"BLM-North","Level3AttrValName":"BLM-NorthWest","Level1AttrValName":"ALL","ItemName":"BLM-NM-MANALLOC-PITEM01","BucketStartDate":"2030-01-07"}] for which the base64 encoded value is W3siQWxsb2NVc2VyRGVmIjoiezExLDEzLDE3LDI0LDU2LDc4LDg5LDEwMCwyMyw0NSw2Nyw4OSw5MCwsLCwsLCwzMH0iLA0KIk9yZ0NvZGUiOiJCTE06QkxNX00xIiwNCiJMZXZlbDJBdHRyVmFsTmFtZSI6IkJMTS1Ob3J0aCIsDQoiTGV2ZWwzQXR0clZhbE5hbWUiOiJCTE0tTm9ydGhXZXN0IiwNCiJMZXZlbDFBdHRyVmFsTmFtZSI6IkFMTCIsDQoiSXRlbU5hbWUiOiJCTE0tTk0tTUFOQUxMT0MtUElURU0wMSIsDQoiQnVja2V0U3RhcnREYXRlIjoiMjAzMC0wMS0wNyJ9XQ==. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

Example 2 Request Body

The following example includes the contents of the request body in JSON format:

{
"ESSJobId" : null,
"UpdateAsync": "W3siQWxsb2NVc2VyRGVmIjoiezExLDEzLDE3LDI0LDU2LDc4LDg5LDEwMCwyMyw0NSw2Nyw4OSw5MCwsLCwsLCwzMH0iLA0KIk9yZ0NvZGUiOiJCTE06QkxNX00xIiwNCiJMZXZlbDJBdHRyVmFsTmFtZSI6IkJMTS1Ob3J0aCIsDQoiTGV2ZWwzQXR0clZhbE5hbWUiOiJCTE0tTm9ydGhXZXN0IiwNCiJMZXZlbDFBdHRyVmFsTmFtZSI6IkFMTCIsDQoiSXRlbU5hbWUiOiJCTE0tTk0tTUFOQUxMT0MtUElURU0wMSIsDQoiQnVja2V0U3RhcnREYXRlIjoiMjAzMC0wMS0wNyJ9XQ==",
"Message": null,
"UpdateMode": "batch"  
}

Example 2 Response Body

The following example includes the contents of the response body in JSON format:

{
    "BmRunId": -1,
    "InventoryItemId": -23453,
    "OrganizationId": -23453,
    "AttributeId": -23453,
    "AttributeValueId": -23453,
    "Level1AttributeValueId": -23453,
    "Level2AttributeValueId": -23453,
    "Level3AttributeValueId": -23453,
    "AllocationDate": "2030-02-11",
    "AllocSup": null,
    "ConsumSup": null,
    "AvailSup": null,
    "CumlAvailSup": null,
    "GrossAlloc": null,
    "GrossConsum": null,
    "GrossAvail": null,
    "GrossCumlAvail": null,
    "AllocSteal": null,
    "GrossAllocSteal": null,
    "AvailSteal": null,
    "NetWeekSup": null,
    "Level1AttributeName": null,
    "Level2AttributeName": null,
    "Level3AttributeName": null,
    "Level1AttributeValName": null,
    "Level2AttributeValName": null,
    "Level3AttributeValName": null,
    "InventoryItemName": null,
    "OrganizationName": null,
    "OrganizationCode": null,
    "LastUpdatedBy": "BLM_ALL",
    "LastUpdateLogin": "CB187496A57C4669E053A80AF20AFB1E",
    "LastUpdateDate": "2021-09-10T08:51:22.198+00:00",
    "CreatedBy": "BLM_ALL",
    "CreationDate": "2021-09-10T08:51:22+00:00",
    "AllocUserDef": null,
    "ESSJobId": 309893,
    "Message": "A scheduled process with process ID 309893 has been submitted. Refer to the scheduled processes log file for the detailed response. (MSC-2806192)",
    "UpdateMode": "batch",
    "links": [
        {
            "rel": "self",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B9ADEA700078",
            "name": "allocations",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B9ADEA700078",
            "name": "allocations",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1",
            "name": "backlogManagementPlans",
            "kind": "item"
        },
        {
            "rel": "enclosure",
            "href": "servername/fscmRestApi/resources/version/backlogManagementPlans/-1/child/allocations/00070000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000000EACED00057708FFFFFFFFFFFFA4630000004AACED00057372000D6A6176612E73716C2E4461746514FA46683F3566970200007872000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001B9ADEA700078/enclosure/UpdateAsync",
            "name": "UpdateAsync",
            "kind": "other"
        }
    ]
}
Back to Top