Create an affected item
post
/fscmRestApi/resources/11.13.18.05/newItemRequests/{NewItemRequestId}/child/newItemRequestAffectedItems
Request
Path Parameters
-
NewItemRequestId(required): integer
Value that uniquely identifies the new item request.
Header Parameters
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
-
Upsert-Mode:
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
- application/json
Root Schema : schema
Type:
Show Source
object-
EffectiveDate: string
(date-time)
Date when the item becomes effective.
-
ItemId(required): integer
Value that uniquely identifies the item.
-
ItemRevision: string
Maximum Length:
255Revision of the item. -
ItemRevisionId(required): integer
Value that uniquely identifies the item revision.
-
newItemRequestLineTranslations: array
New Item Request Line Translations
Title:
New Item Request Line TranslationsThe New Item Request Line Translations resource contains details of the translations of a item in the new item request.
Nested Schema : New Item Request Line Translations
Type:
arrayTitle:
New Item Request Line TranslationsThe New Item Request Line Translations resource contains details of the translations of a item in the new item request.
Show Source
Nested Schema : newItemRequests-newItemRequestAffectedItems-newItemRequestLineTranslations-item-post-request
Type:
Show Source
object-
CancelComments: string
Maximum Length:
240Comments for the cancel action. -
Description: string
Maximum Length:
2000Description of the translation. -
Language: string
Maximum Length:
4Language of the translation. -
Name: string
Maximum Length:
240Name of the translation. -
ObjectVersionNumber: integer
(int32)
Version number of the translation.
-
SourceLang: string
Maximum Length:
4Source language of the translation.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : newItemRequests-newItemRequestAffectedItems-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who added the item to the new item request. -
CreationDate: string
(date-time)
Read Only:
trueDate when the user added the item to the new item request. -
Description: string
Read Only:
trueMaximum Length:240Description of the item. -
EffectiveDate: string
(date-time)
Date when the item becomes effective.
-
ItemClass: string
Read Only:
trueMaximum Length:255Class of the item in the new item request. -
ItemClassCode: string
Title:
Item ClassRead Only:trueMaximum Length:80Abbreviation that identifies the item class. -
ItemId: integer
Value that uniquely identifies the item.
-
ItemNumber: string
Read Only:
trueMaximum Length:1000Number that identifies the item in the new item request. -
ItemRevision: string
Maximum Length:
255Revision of the item. -
ItemRevisionId: integer
Value that uniquely identifies the item revision.
-
ItemStatus: string
Read Only:
trueMaximum Length:255Value that identifies the status of the item. -
ItemStatusCode: string
Title:
Item StatusRead Only:trueMaximum Length:10Abbreviation that identifies the status of the item. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate when the item was most recently updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the item in the new item request. -
LineStatus: string
Read Only:
trueMaximum Length:255Value that identifies the status of the item within the new item request. -
LineStatusCode: integer
(int64)
Read Only:
trueAbbreviation that identifies the status of the item within the new item request. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
NewItemRequestId: integer
Read Only:
trueValue that uniquely identifies the new item request. -
NewItemRequestLineId: integer
(int64)
Read Only:
trueValue that uniquely identifies the item in the new item request. -
newItemRequestLineTranslations: array
New Item Request Line Translations
Title:
New Item Request Line TranslationsThe New Item Request Line Translations resource contains details of the translations of a item in the new item request. -
NewItemRequestNumber: string
Read Only:
trueMaximum Length:255Number that identifies the new item request.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : New Item Request Line Translations
Type:
arrayTitle:
New Item Request Line TranslationsThe New Item Request Line Translations resource contains details of the translations of a item in the new item request.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : newItemRequests-newItemRequestAffectedItems-newItemRequestLineTranslations-item-response
Type:
Show Source
object-
CancelComments: string
Maximum Length:
240Comments for the cancel action. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the translation. -
CreationDate: string
(date-time)
Read Only:
trueCreation date of the translation. -
Description: string
Maximum Length:
2000Description of the translation. -
Language: string
Maximum Length:
4Language of the translation. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate when the translation was last updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who last updated the translation. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32Login that the user used when updating the translation. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Maximum Length:
240Name of the translation. -
ObjectVersionNumber: integer
(int32)
Version number of the translation.
-
SourceLang: string
Maximum Length:
4Source language of the translation.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- newItemRequestLineTranslations
-
Parameters:
- NewItemRequestId:
$request.path.NewItemRequestId - newItemRequestAffectedItemsUniqID:
$request.path.newItemRequestAffectedItemsUniqID
The New Item Request Line Translations resource contains details of the translations of a item in the new item request. - NewItemRequestId:
Examples
This example describes how to create an affected item.
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/newItemRequests/NewItemRequestId/child/newItemRequestAffectedItems"
Example 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.
{
"ItemId": 300100151781646,
"ItemRevisionId": 300100151781666
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"ItemNumber": "PLM_ZCH_020",
"ItemClassCode": "300100039973349",
"Description": "PLM_ZCH_020 DES",
"CreatedBy": "PIMQA",
"CreationDate": "2018-12-06T23:21:13-08:00",
"LastUpdateDate": "2018-12-06T23:21:16.002-08:00",
"LastUpdatedBy": "PIMQA",
"ItemClass": null,
"ItemStatus": null,
"LineStatus": null,
"NewItemRequestLineId": 300100151858546,
"ItemStatusCode": "Active",
"LineStatusCode": 1,
"ItemRevisionId": 300100151781666,
"ItemId": 300100151781646,
"EffectiveDate": null,
"NewItemRequestId": 300100151809560,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560/child/newItemRequestAffectedItems/00030000000EACED0005770800000000000000CC0000000EACED00057708000110F082F2D5720000000EACED00057708000110F082F1A90E",
"name": "newItemRequestAffectedItems",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560/child/newItemRequestAffectedItems/00030000000EACED0005770800000000000000CC0000000EACED00057708000110F082F2D5720000000EACED00057708000110F082F1A90E",
"name": "newItemRequestAffectedItems",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560",
"name": "newItemRequests",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560/child/newItemRequestAffectedItems/00030000000EACED0005770800000000000000CC0000000EACED00057708000110F082F2D5720000000EACED00057708000110F082F1A90E/lov/ItemClassPVO1",
"name": "ItemClassPVO1",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560/child/newItemRequestAffectedItems/00030000000EACED0005770800000000000000CC0000000EACED00057708000110F082F2D5720000000EACED00057708000110F082F1A90E/lov/LookupPVO1",
"name": "LookupPVO1",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername/fscmRestApi/resources/version/newItemRequests/300100151809560/child/newItemRequestAffectedItems/00030000000EACED0005770800000000000000CC0000000EACED00057708000110F082F2D5720000000EACED00057708000110F082F1A90E/lov/ItemStatusPVO1",
"name": "ItemStatusPVO1",
"kind": "collection"
}
]
}