Create one packing unit

post

/fscmRestApi/resources/11.13.18.05/packingUnits

Request

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
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource manages the attachments associated with the packing unit resource.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
The Contents resource manages the operations on packing unit contents.
Show Source
Nested Schema : Nested Packing Units
Type: array
Title: Nested Packing Units
The Nested Packing Units resources manages the operations on nested packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource gets comments, information, or instructions for packing units.
Show Source
Nested Schema : Flexfields for Packing Units
Type: array
Title: Flexfields for Packing Units
The Flexfields for Packing Units resource manages the descriptive flexfields for packing units.
Show Source
Nested Schema : packingUnits-attachments-item-post-request
Type: object
Show Source
Nested Schema : packingUnits-contents-item-post-request
Type: object
Show Source
Nested Schema : serials
Type: array
Show Source
Nested Schema : packingUnits-contents-serials-item-post-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-item-post-request
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : contents
Type: array
Show Source
Nested Schema : nestedPackingUnits
Type: array
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The note objects resource is used to view the note objects.
Show Source
Nested Schema : packingUnitDFFs
Type: array
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-item-post-request
Type: object
Show Source
Nested Schema : serials
Type: array
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-serials-item-post-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-nestedPackingUnits-item-post-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-notes-item-post-request
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested Schema : packingUnits-nestedPackingUnits-packingUnitDFFs-item-post-request
Type: object
Show Source
Nested Schema : packingUnits-notes-item-post-request
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested 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 : packingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource manages the attachments associated with the packing unit resource.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
The Contents resource manages the operations on packing unit contents.
Show Source
Nested Schema : Nested Packing Units
Type: array
Title: Nested Packing Units
The Nested Packing Units resources manages the operations on nested packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource gets comments, information, or instructions for packing units.
Show Source
Nested Schema : Flexfields for Packing Units
Type: array
Title: Flexfields for Packing Units
The Flexfields for Packing Units resource manages the descriptive flexfields for packing units.
Show Source
Nested Schema : packingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages the operations on serials.
Show Source
Nested Schema : packingUnits-contents-serials-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the current status of the serial number of the content item.
  • Read Only: true
    Maximum Length: 80
    Description of the current status of the serial number of the content item.
  • Links
  • Read Only: true
    Maximum Length: 80
    Serial number of the container item, if container item is under serial control.
Nested Schema : packingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource manages the attachments associated with the packing unit resource.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
The Contents resource manages the operations on packing unit contents.
Show Source
Nested Schema : Nested Packing Units
Type: array
Title: Nested Packing Units
The Nested Packing Units resources manages the operations on nested packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource gets comments, information, or instructions for packing units.
Show Source
Nested Schema : Flexfields for Packing Units
Type: array
Title: Flexfields for Packing Units
The Flexfields for Packing Units resource manages the descriptive flexfields for packing units.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages the operations on serials.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-serials-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the current status of the serial number of the content item.
  • Read Only: true
    Maximum Length: 80
    Description of the current status of the serial number of the content item.
  • Links
  • Read Only: true
    Maximum Length: 80
    Serial number of the container item, if container item is under serial control.
Nested Schema : packingUnits-nestedPackingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-notes-item-response
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    User who created the note.
  • Title: Creation Date
    Read Only: true
    Date when the user created the note record.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Delete Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be deleted. If false, then the note can be deleted. The default value is true.
  • Read Only: true
    Maximum Length: 320
    The email address of the user who created the note.
  • Read Only: true
    The address of the user who created the note.
  • Read Only: true
    The phone number of the user who created the note.
  • Title: Last Update Date
    Read Only: true
    Date when the user most recently updated the note data.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    User who most recently updated the note record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    Login of the user who most recently updated the note record.
  • Links
  • Title: Note ID
    Read Only: true
    Value that uniquely identifies the note.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Read Only: true
    Value that uniquely identifies the party to which the note is associated.
  • Title: Author
    Read Only: true
    Maximum Length: 360
    Name of the user who created the record.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Update Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be updated. If false, then the note can't be updated. The default value is true.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested Schema : packingUnits-nestedPackingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Nested Schema : packingUnits-notes-item-response
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    User who created the note.
  • Title: Creation Date
    Read Only: true
    Date when the user created the note record.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Delete Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be deleted. If false, then the note can be deleted. The default value is true.
  • Read Only: true
    Maximum Length: 320
    The email address of the user who created the note.
  • Read Only: true
    The address of the user who created the note.
  • Read Only: true
    The phone number of the user who created the note.
  • Title: Last Update Date
    Read Only: true
    Date when the user most recently updated the note data.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    User who most recently updated the note record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    Login of the user who most recently updated the note record.
  • Links
  • Title: Note ID
    Read Only: true
    Value that uniquely identifies the note.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Read Only: true
    Value that uniquely identifies the party to which the note is associated.
  • Title: Author
    Read Only: true
    Maximum Length: 360
    Name of the user who created the record.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Update Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be updated. If false, then the note can't be updated. The default value is true.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested Schema : packingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create one packing unit.

Example 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/packingUnits"

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource to create a user defined packing unit.

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

Example 1 Request Body

The following example includes the contents of the request body in JSON format. 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.

         {
            "OrganizationId":"204",
            "SourceName": "WSH",
            "PackingUnit": "M1-XLPN17",
            "AllowAutoGeneration": "No"
        }

Example 2 cURL Command

Use the following cURL command to submit a request on the REST resource to create a Packing Unit which is auto generated using organization parameters.

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

Example 2 Request Body

The following example includes the contents of the request body in JSON format. 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.

  {
            "OrganizationCode":"V1",
            "SourceName": "WSH",
            "AllowAutoGeneration": "Yes"
 }

Example 3 cURL Command

Use the following cURL command to submit a request on the REST resource to create a packing unit which is user defined along with DFF.

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

Example 3 Request Body

The following example includes the contents of the request body in JSON format. 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.

         {
            "OrganizationId":"204",
            "SourceName": "WSH",
            "PackingUnit": "M1-XLPN17",
            "AllowAutoGeneration": "No",
   "packingUnitDFFs" : [ {
      "LPNId" : 14351,
      "lpnGseg1" : "GSeg1",
      "lpnGseg2" : 23,
      "lpnGseg3" : "2018-02-15",
      "lpnGseg4" : "2018-02-09T08:11:00+00:00",
      "__FLEX_Context" : "LPNContext1",
      "__FLEX_Context_DisplayValue" : "LPNContext1",
      "lpncontext1Seg1" : "CSeg1",
      "lpncontext1Seg2" : "CSeg#2"
    } ]
}

Example 4 cURL Command

Use the following cURL command to submit a request on the REST resource to create a packing unit which is auto generated along with DFF.

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

Example 4 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
"OrganizationId" : "204",
"SourceName" : "WSH",
"AllowAutoGeneration" : "Yes",
"packingUnitDFFs": [
{
"gs1": "Global1",
"__FLEX_Context": "LPNCSegs",
"lpncseg1": "CSeg1"
}]
}

Example 5 cURL Command

Use the following cURL command to submit a request on the REST resource to create bulk packing units which are auto generated along with DFF.

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

Example 5 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
"parts": [
{
"id": "part1",
"path": "/packingUnits",
"operation": "create",
"payload": {
"OrganizationCode":"V1",
"SourceName": "WSH",
"AllowAutoGeneration":"Yes",
"packingUnitDFFs": [ {
"gs1": "GSS2",
"gs2": "4",
"gs3": "GSS6",
"__FLEX_Context": "LPNCSegs",
"lpncseg1":"VAL2",
"lpncseg2":"18",
"lpncseg3":"2018-03-12",
"lpncseg4":"2018-03-12T00:00:00.000-00:00"
} ]
}
},
{
"id": "part2",
"path": "/packingUnits",
"operation": "create",
"payload": { 
"OrganizationCode":"V1",
"SourceName": "WSH",
"AllowAutoGeneration":"Yes",
"packingUnitDFFs": [ {
"gs1": "UGSS2",
"gs2": "14",
"gs3": "GSS16",
"__FLEX_Context": "LPNCSegs",
"lpncseg1":"VAL12",
"lpncseg2":"182",
"lpncseg3":"2017-03-12",
"lpncseg4":"2017-03-12T00:00:00.000-00:00"
} ]
}
}
]
}

Example 6 cURL Command

Use the following cURL command to submit a request on the REST resource to create packing unit which is user defined along with notes.

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

Example 6 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
    "OrganizationId":"204",
    "SourceName": "WSH",
    "PackingUnit": "V1-PU01",
    "AllowAutoGeneration": "No",
    "notes" : [ {
        "NoteTxt" : "UE9TVCBPUEVSQVRJT04gRlJPTSBQQUNLSU5HIFVOSVQgUkVTVCBTRVJWSUNF",
        "NoteTypeCode" : "LPN_PACKING_INSTRUCTIONS",
        "VisibilityCode" : "EXTERNAL"
        } ]
                        }

Example 7 cURL Command

Use the following cURL command to submit a request on the REST resource to create packing unit which is user defined along with web attachments.

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

Example 7 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
    "OrganizationId":"204",
    "SourceName": "WSH",
    "PackingUnit": "V1-PU03",
    "AllowAutoGeneration": "No",
    "attachments":[{
        "DatatypeCode" : "WEB_PAGE",
        "Description" : "WEB_PAGE created from REST",
        "CategoryName" : "MISC",
        "Title" : "Link to google.de",
         "Url" : "https://www.google.com"
    }]    
}

Example 8 cURL Command

Use the following cURL command to submit a request on the REST resource to create packing unit which is auto generated along with notes, attachments and DFF.

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

Example 8 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
    "OrganizationId":"204",
    "SourceName": "WSH",
    "PackingUnit": "V1-N03",
    "AllowAutoGeneration": "No",
    "notes" : [ {
        "NoteTxt" : "UE9TVCBPUEVSQVRJT04gRlJPTSBQQUNLSU5HIFVOSVQgUkVTVCBTRVJWSUNF",
        "NoteTypeCode" : "LPN_PACKING_INSTRUCTIONS",
        "VisibilityCode" : "EXTERNAL"
        } ]
    ,
    "attachments":[{
        "DatatypeCode" : "WEB_PAGE",
        "Description" : "WEB_PAGE created from REST",
        "CategoryName" : "MISC",
        "Title" : "Link to google.de",
         "Url" : "https://www.google.com"
    }]    
    ,
    "packingUnitDFFs": [
        {
            "globalsegment1": "GS1Value",
            "__FLEX_Context": "Context1",
            "css1": "CSS1Val",
            "css2": "CSS2Val"
        }
    ]    
}

Example 9 cURL Command

Use the following cURL command to submit a request on the REST resource to create packing unit with a web attachment and a text file attachment.

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

Example 9 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
    "OrganizationId":"204",
    "SourceName": "WSH",
    "PackingUnit": "V1-PU-01",
    "AllowAutoGeneration": "No",
    "attachments":[
    {
        "DatatypeCode" : "WEB_PAGE",
        "Description" : "WEB_PAGE created from REST",
        "CategoryName" : "MISC",
        "Title" : "Link to google.de",
         "Url" : "https://www.google.com"
    },
    {
    "DatatypeCode" : "FILE",
    "Title": "TEXTUploadFromREST.txt",
    "Description": "TEXT UPLOAD from REST1",                               
    "FileName": "TEXTUploadFromREST.txt",
    "UploadedFileContentType": "text/plain",
    "CategoryName" : "MISC",
    "FileContents" : "UE9TVCBVcGxvYWQgRnJvbSBSRVNUIHR4dA=="
    }
    ]    
}


Example 10 cURL Command

Use the following cURL command to submit a request on the REST resource to create bulk packing unit which is auto generated along with DFF.

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

Example 10 Request Body

The following example includes the contents of the request body in JSON format. 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.

{
  "parts": [
         {
  "id": "part1",
  "path": "/packingUnits/300100126792321/child/attachments",
  "operation": "create",
  "payload": {
    "DatatypeCode" : "WEB_PAGE",
    "Description" : "WEB_PAGE created from REST1",
    "CategoryName" : "MISC",
    "Title" : "Link to google.de",
    "Url" : "https://www.google.com"
  }
  },
  {
  "id": "part2",
  "path": "/packingUnits/300100126792321/child/attachments",
  "operation": "create",
  "payload": {
    "DatatypeCode" : "FILE",
    "Title": "TEXTUploadFromREST.txt",
    "Description": "TEXT UPLOAD from REST1",                               
    "FileName": "TEXTUploadFromREST.txt",
    "UploadedFileContentType": "text/plain",
    "CategoryName" : "MISC",
    "FileContents" : "UE9TVCBVcGxvYWQgRnJvbSBSRVNUIHR4dA=="
  }
  }
    ]
}


Back to Top