Create items
post
/fscmRestApi/resources/11.13.18.05/productionSchedulingPlans/{PlanId}/child/items
Request
Path Parameters
-
PlanId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
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
-
ApplySupplyToleranceFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then apply supply tolerance on the inventory item. If N, then don't apply supply tolerance on the inventory item. This attribute doesn't have a default value. -
ConsumptionTime: number
Target time of consumption of the inventory item.
-
ConsumptionTimeUnit: string
Maximum Length:
30
Time unit of consumption. Valid values include seconds, minutes, hours, days, shifts, weeks, and months. -
Description: string
Maximum Length:
500
Description of the production schedule. -
EarliestShortageConsumeDate: string
(date-time)
Value that indicates the earliest date when the item is available if a work order operation is short of supply.
-
InventoryItemId(required): integer
(int64)
Value that uniquely identifies the inventory item.
-
ItemCode(required): string
Maximum Length:
300
Abbreviation that identifies the item. -
ItemType(required): string
Maximum Length:
30
Type of item. Valid values include Manufactured, Purchased, and Both. -
LeadTimeDays: number
Value that indicates the lead time of the Make or Buy items.
-
LeadTimeOverrideDays: number
Value that indicates the lead time of the make or buy items. This attribute overrides the lead time value that??s inherited from the LeadTimeDays attribute.
-
MaximumLevel: number
Maximum level of the inventory item.
-
MinimumLevel: number
Minimum level of the inventory item.
-
onHoldLots: array
On Hold Lots
Title:
On Hold Lots
The On Hold Lots resource manages the on-hand inventory that's on hold. -
PlanId(required): integer
(int64)
Value that uniquely identifies the production schedule.
-
PlanningMakeBuyValue: string
Maximum Length:
80
Value that indicates whether the item is a manufactured item or a purchased item. Valid values are Make and Buy. -
Precision: integer
(int64)
Display precision of the inventory item.
-
RebuildableFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then the item is rebuildable. If N, then the item isn't rebuildable. This attribute doesn't have a default value. -
ReceivingCalendarId: integer
(int64)
Value that uniquely identifies the receiving calendar.
-
RelaxedMaximumLevelFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then relax the maximum value. If N, then don't relax the maximum value. This attribute doesn't have a default value. -
RelaxedMinimumLevelFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then relax the minimum value. If N, then don't relax the minimum value. This attribute doesn't have a default value. -
SaleableFlag(required): boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then the item is available for sale. If N, then the item isn't available for sale. This attribute doesn't have a default value. -
ShortageQuantity: number
The amount that the item is short for the plan.
-
StartLevel: number
Start level of on-hand inventory item.
-
UnitOfMeasure: string
Maximum Length:
25
Name of the unit of measure. -
UOMCode: string
Maximum Length:
30
Abbreviation that identifies the unit of measure. -
UseConsumptionTimeFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then use consumption time. If N, then don't use consumption time. This attribute doesn't have a default value.
Nested Schema : On Hold Lots
Type:
array
Title:
On Hold Lots
The On Hold Lots resource manages the on-hand inventory that's on hold.
Show Source
Nested Schema : productionSchedulingPlans-items-onHoldLots-item-post-request
Type:
Show Source
object
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context(required):
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(required):
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 : productionSchedulingPlans-items-item-response
Type:
Show Source
object
-
ApplySupplyToleranceFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then apply supply tolerance on the inventory item. If N, then don't apply supply tolerance on the inventory item. This attribute doesn't have a default value. -
ConsumptionTime: number
Target time of consumption of the inventory item.
-
ConsumptionTimeUnit: string
Maximum Length:
30
Time unit of consumption. Valid values include seconds, minutes, hours, days, shifts, weeks, and months. -
CreatedBy: string
Read Only:
true
Maximum Length:64
-
CreationDate: string
(date-time)
Read Only:
true
-
Description: string
Maximum Length:
500
Description of the production schedule. -
EarliestShortageConsumeDate: string
(date-time)
Value that indicates the earliest date when the item is available if a work order operation is short of supply.
-
InventoryItemId: integer
(int64)
Value that uniquely identifies the inventory item.
-
ItemCode: string
Maximum Length:
300
Abbreviation that identifies the item. -
ItemType: string
Maximum Length:
30
Type of item. Valid values include Manufactured, Purchased, and Both. -
LastUpdateDate: string
(date-time)
Read Only:
true
-
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
-
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
-
LeadTimeDays: number
Value that indicates the lead time of the Make or Buy items.
-
LeadTimeOverrideDays: number
Value that indicates the lead time of the make or buy items. This attribute overrides the lead time value that??s inherited from the LeadTimeDays attribute.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MaximumLevel: number
Maximum level of the inventory item.
-
MinimumLevel: number
Minimum level of the inventory item.
-
onHoldLots: array
On Hold Lots
Title:
On Hold Lots
The On Hold Lots resource manages the on-hand inventory that's on hold. -
OnHoldQuantity: number
Read Only:
true
The quantity of the lot that's on hold. -
PlanId: integer
(int64)
Value that uniquely identifies the production schedule.
-
PlanningMakeBuyValue: string
Maximum Length:
80
Value that indicates whether the item is a manufactured item or a purchased item. Valid values are Make and Buy. -
Precision: integer
(int64)
Display precision of the inventory item.
-
RebuildableFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then the item is rebuildable. If N, then the item isn't rebuildable. This attribute doesn't have a default value. -
ReceivingCalendarId: integer
(int64)
Value that uniquely identifies the receiving calendar.
-
RelaxedMaximumLevelFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then relax the maximum value. If N, then don't relax the maximum value. This attribute doesn't have a default value. -
RelaxedMinimumLevelFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then relax the minimum value. If N, then don't relax the minimum value. This attribute doesn't have a default value. -
SaleableFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then the item is available for sale. If N, then the item isn't available for sale. This attribute doesn't have a default value. -
ShortageQuantity: number
The amount that the item is short for the plan.
-
StartLevel: number
Start level of on-hand inventory item.
-
UnitOfMeasure: string
Maximum Length:
25
Name of the unit of measure. -
UOMCode: string
Maximum Length:
30
Abbreviation that identifies the unit of measure. -
UseConsumptionTimeFlag: boolean
Maximum Length:
1
Contains one of the following values: Y or N. If Y, then use consumption time. If N, then don't use consumption time. This attribute doesn't have a default value.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : On Hold Lots
Type:
array
Title:
On Hold Lots
The On Hold Lots resource manages the on-hand inventory that's on hold.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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 : productionSchedulingPlans-items-onHoldLots-item-response
Type:
Show Source
object
-
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the record. -
CreationDate: string
(date-time)
Read Only:
true
Date and time when the user created the record. -
Description: string
Read Only:
true
Maximum Length:500
Description of the on-hold lot. -
HoldDate: string
(date-time)
Read Only:
true
Date when the hold expires. -
InventoryItemId: integer
(int64)
Read Only:
true
Value that uniquely identifies the inventory item. -
ItemCode: string
Read Only:
true
Maximum Length:300
Abbreviation that identifies the item. -
LastUpdateDate: string
(date-time)
Read Only:
true
Date and time when the user most recently updated the record. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who most recently updated the record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Login that the user used when updating the document. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
LotNumber: string
Read Only:
true
Maximum Length:80
Number that identifies the inventory lot. -
OnHoldQuantity: number
Read Only:
true
The quantity of the lot that's on hold. -
PlanId: integer
(int64)
Read Only:
true
Value that uniquely identifies the production schedule. -
UnitOfMeasure: string
Read Only:
true
Maximum Length:25
Name of the unit of measure. -
UOMCode: string
Read Only:
true
Maximum Length:30
Abbreviation that identifies the unit of measure.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Links
- onHoldLots
-
Parameters:
- PlanId:
$request.path.PlanId
- itemsUniqID:
$request.path.itemsUniqID
The On Hold Lots resource manages the on-hand inventory that's on hold. - PlanId: