Create demand planners
post
/fscmRestApi/resources/11.13.18.05/collaborationDemandPlanners
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-
dataAccessSecurity: array
Data Access Security
Title:
Data Access SecurityThe Data Access Security resource manages the data assess security for the demand planner. -
documentVisibility: array
Document Visibility
Title:
Document VisibilityThe Document Visibility resource manages the visibility to documents for the demand planner. -
Email: string
Title:
EmailMaximum Length:240Primary work email of the user. -
FullAccessFlag: boolean
Contains one of the following values: Yes or No. If Yes, then the demand planner has access to the entire customer forecast data. If No, then the demand planner doesn't have access to the entire customer forecast data. The default value is No.
-
LastName: string
Maximum Length:
150Person last name. -
ParticipantCode: string
Maximum Length:
30Abbreviation that identifies the user's participant type. A list of accepted values is ORA_VCS_CUSTOMER or ORA_VCS_ENTERPRISE. -
PersonPartyId: integer
(int64)
Value that uniquely identifies the customer contact.
-
Status: string
Maximum Length:
80Value that indicates the administrative status of the demand planner. The service provider determines the definitive value for this attribute. For example, Active indicates that the demand planner can access order forecast data, and Inactive indicates that the demand planner can't access order forecast data. The default value is Active. -
StatusCode: string
Maximum Length:
30Default Value:ORA_VCS_ACTIVEAbbreviation that identifies the status of the demand planner. -
UserName(required): string
Maximum Length:
100Login that the demand planner used to directly authenticate with the service provider. This attribute is required.
Nested Schema : Data Access Security
Type:
arrayTitle:
Data Access SecurityThe Data Access Security resource manages the data assess security for the demand planner.
Show Source
Nested Schema : Document Visibility
Type:
arrayTitle:
Document VisibilityThe Document Visibility resource manages the visibility to documents for the demand planner.
Show Source
Nested Schema : collaborationDemandPlanners-dataAccessSecurity-item-post-request
Type:
Show Source
object-
CustomerId: integer
(int64)
Value that uniquely identifies the customer in the customer forecast that receives the item. It's a primary key that the application creates when it creates the customer.
-
CustomerName: string
Maximum Length:
360Name of the customer in the customer forecast that receives the item. -
CustomerNumber: string
Maximum Length:
360Number that identifies the customer in the customer forecast that receives the item. -
CustomerSiteId: integer
(int64)
Value that uniquely identifies the customer site in the customer forecast that receives the item. It's a primary key that the application creates when it creates the customer.
-
CustomerSiteNumber: string
Maximum Length:
30Number that identifies customer site in the customer forecast that receives the item. -
SecurityContextCode: string
Maximum Length:
30Abbreviation that identifies the level of security applied. A list of accepted values is defined in the lookup type ORA_VCS_SECURITY_CONTEXT.
Nested Schema : collaborationDemandPlanners-documentVisibility-item-post-request
Type:
Show Source
object-
DocumentTypeCode: string
Abbreviation that identifies the type of document used for collaboration.
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 : collaborationDemandPlanners-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the demand planner. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the user created the demand planner. -
dataAccessSecurity: array
Data Access Security
Title:
Data Access SecurityThe Data Access Security resource manages the data assess security for the demand planner. -
DemandPlannerId: integer
(int64)
Read Only:
trueValue that uniquely identifies the demand planner. -
DisplayName: string
Read Only:
trueMaximum Length:240Name of the user displayed on the UI. -
documentVisibility: array
Document Visibility
Title:
Document VisibilityThe Document Visibility resource manages the visibility to documents for the demand planner. -
Email: string
Title:
EmailMaximum Length:240Primary work email of the user. -
FirstName: string
Read Only:
trueMaximum Length:150Person first name. -
FullAccessFlag: boolean
Contains one of the following values: Yes or No. If Yes, then the demand planner has access to the entire customer forecast data. If No, then the demand planner doesn't have access to the entire customer forecast data. The default value is No.
-
LastName: string
Maximum Length:
150Person last name. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the demand planner. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the demand planner. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ListName: string
Read Only:
trueMaximum Length:240Listed name of the user. -
ParticipantCode: string
Maximum Length:
30Abbreviation that identifies the user's participant type. A list of accepted values is ORA_VCS_CUSTOMER or ORA_VCS_ENTERPRISE. -
ParticipantName: string
Title:
MeaningRead Only:trueMaximum Length:80The user's participant type. -
PersonPartyId: integer
(int64)
Value that uniquely identifies the customer contact.
-
Status: string
Maximum Length:
80Value that indicates the administrative status of the demand planner. The service provider determines the definitive value for this attribute. For example, Active indicates that the demand planner can access order forecast data, and Inactive indicates that the demand planner can't access order forecast data. The default value is Active. -
StatusCode: string
Maximum Length:
30Default Value:ORA_VCS_ACTIVEAbbreviation that identifies the status of the demand planner. -
UserName: string
Maximum Length:
100Login that the demand planner used to directly authenticate with the service provider. This attribute is required.
Nested Schema : Data Access Security
Type:
arrayTitle:
Data Access SecurityThe Data Access Security resource manages the data assess security for the demand planner.
Show Source
Nested Schema : Document Visibility
Type:
arrayTitle:
Document VisibilityThe Document Visibility resource manages the visibility to documents for the demand planner.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : collaborationDemandPlanners-dataAccessSecurity-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the data access security. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the user created the data access security. -
CustomerId: integer
(int64)
Value that uniquely identifies the customer in the customer forecast that receives the item. It's a primary key that the application creates when it creates the customer.
-
CustomerName: string
Maximum Length:
360Name of the customer in the customer forecast that receives the item. -
CustomerNumber: string
Maximum Length:
360Number that identifies the customer in the customer forecast that receives the item. -
CustomerSiteAddress: string
Read Only:
trueMaximum Length:960Address of the customer site in the customer forecast that receives the item. -
CustomerSiteId: integer
(int64)
Value that uniquely identifies the customer site in the customer forecast that receives the item. It's a primary key that the application creates when it creates the customer.
-
CustomerSiteLocation: string
Read Only:
trueMaximum Length:30Location of the customer site in the customer forecast that receives the item. -
CustomerSiteNumber: string
Maximum Length:
30Number that identifies customer site in the customer forecast that receives the item. -
DataAccessId: integer
(int64)
Read Only:
trueValue that uniquely identifies the specific data security access granted to the demand planner. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the data access security. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the data access security. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
SecurityContext: string
Read Only:
trueMaximum Length:80Value that identifies the level of security applied. Values include Customer or Customer Site. The default value is Customer. -
SecurityContextCode: string
Maximum Length:
30Abbreviation that identifies the level of security applied. A list of accepted values is defined in the lookup type ORA_VCS_SECURITY_CONTEXT.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
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 : collaborationDemandPlanners-documentVisibility-item-response
Type:
Show Source
object-
CustomerLevel: string
Read Only:
trueMaximum Length:80Level of the customer a document accepts for collaboration. -
CustomerLevelCode: string
Read Only:
trueMaximum Length:30Abbreviation that identifies the customer level of the document. A list of accepted values is defined in the lookup type ORA_VCS_LVL_CUSTOMER. -
DocumentId: integer
(int64)
Read Only:
trueValue that uniquely identifies the document definition. -
DocumentTypeCode: string
Abbreviation that identifies the type of document used for collaboration.
-
DocumentTypeName: string
Read Only:
trueMaximum Length:80Type of document used for collaboration. -
DocumentVisibilityId: integer
(int64)
Read Only:
trueValue that uniquely identifies the specific document visibility assigned to the demand planner. -
ItemLevel: string
Read Only:
trueMaximum Length:80Level of the item a document accepts for collaboration. -
ItemLevelCode: string
Read Only:
trueMaximum Length:30Abbreviation that identifies the item level of the document. A list of accepted values is defined in the lookup type ORA_VCS_LVL_ITEM. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OrganizationLevel: string
Read Only:
trueMaximum Length:80Level of the organization a document accepts for collaboration. -
OrganizationLevelCode: string
Read Only:
trueMaximum Length:30Abbreviation that identifies the organization level of the document. A list of accepted values is defined in the lookup type ORA_VCS_LVL_ORGANIZATION. -
Status: string
Read Only:
trueMaximum Length:80Current state of the document definition. -
StatusCode: string
Read Only:
trueMaximum Length:30Abbreviation that identifies the current state of the document definition.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- dataAccessSecurity
-
Parameters:
- collaborationDemandPlannersUniqID:
$request.path.collaborationDemandPlannersUniqID
The Data Access Security resource manages the data assess security for the demand planner. - collaborationDemandPlannersUniqID:
- documentVisibility
-
Parameters:
- collaborationDemandPlannersUniqID:
$request.path.collaborationDemandPlannersUniqID
The Document Visibility resource manages the visibility to documents for the demand planner. - collaborationDemandPlannersUniqID:
Examples
This example describes how to create enterprise and customer users who can collaborate on customer forecasts.
.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.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners"
Example Request Body
The following example includes the contents of the request
body in JSON format. In this example, a file attahment is uploaded to the purchase
order header successfully. 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.
{
"ParticipantCode":"ORA_VCS_ENTERPRISE",
"UserName":"mark.roman",
"FullAccessFlag": "true",
"documentVisibility": [
{
"DocumentTypeCode": "VCS_CONSUMPTION"
},
{
"DocumentTypeCode": "VCS_FORECAST"
}
]
}Example Response Body
The following example includes the contents of the response body in JSON format:
{
"DemandPlannerId": 300100548703055,
"UserName": "mark.roman",
"DisplayName": null,
"ListName": null,
"Email": null,
"StatusCode": "ORA_VCS_ACTIVE",
"Status": null,
"CreatedBy": "COLLABPLANNER",
"CreationDate": "2021-11-19T21:18:07+00:00",
"LastUpdatedBy": "COLLABPLANNER",
"LastUpdateDate": "2021-11-19T21:18:07.455+00:00",
"FullAccessFlag": "false",
"FirstName": null,
"LastName": null,
"ParticipantCode": "ORA_VCS_ENTERPRISE",
"ParticipantName": null,
"PersonPartyId": null,
"dataAccessSecurity": {
"items": [
{
"DataAccessId": 300100548703056,
"SecurityContextCode": "ORA_VCS_CUSTOMER",
"SecurityContext": null,
"CustomerId": 300100138826553,
"CustomerNumber": null,
"CustomerName": "California Fitness",
"CustomerSiteId": null,
"CustomerSiteNumber": null,
"CustomerSiteAddress": null,
"CustomerSiteLocation": null,
"CreatedBy": "COLLABPLANNER",
"CreationDate": "2021-11-19T21:18:07.147+00:00",
"LastUpdatedBy": "COLLABPLANNER",
"LastUpdateDate": "2021-11-19T21:18:07.455+00:00",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/dataAccessSecurity/300100548703056",
"name": "dataAccessSecurity",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/dataAccessSecurity/300100548703056",
"name": "dataAccessSecurity",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055",
"name": "collaborationDemandPlanners",
"kind": "item"
}
]
}
],
"count": 1,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/dataAccessSecurity",
"name": "dataAccessSecurity",
"kind": "collection"
}
]
},
"documentVisibility": {
"items": [
{
"DocumentVisibilityId": 300100548703057,
"DocumentId": -10002,
"DocumentTypeCode": null,
"DocumentTypeName": null,
"CustomerLevelCode": null,
"CustomerLevel": null,
"OrganizationLevelCode": null,
"OrganizationLevel": null,
"ItemLevelCode": null,
"ItemLevel": null,
"StatusCode": null,
"Status": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility/300100548703057",
"name": "documentVisibility",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility/300100548703057",
"name": "documentVisibility",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055",
"name": "collaborationDemandPlanners",
"kind": "item"
}
]
},
{
"DocumentVisibilityId": 300100548703058,
"DocumentId": -10001,
"DocumentTypeCode": null,
"DocumentTypeName": null,
"CustomerLevelCode": null,
"CustomerLevel": null,
"OrganizationLevelCode": null,
"OrganizationLevel": null,
"ItemLevelCode": null,
"ItemLevel": null,
"StatusCode": null,
"Status": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility/300100548703058",
"name": "documentVisibility",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility/300100548703058",
"name": "documentVisibility",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055",
"name": "collaborationDemandPlanners",
"kind": "item"
}
]
}
],
"count": 2,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility",
"name": "documentVisibility",
"kind": "collection"
}
]
},
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055",
"name": "collaborationDemandPlanners",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055",
"name": "collaborationDemandPlanners",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/dataAccessSecurity",
"name": "dataAccessSecurity",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/collaborationDemandPlanners/300100548703055/child/documentVisibility",
"name": "documentVisibility",
"kind": "collection"
}
]
}