Create one value
post
/fscmRestApi/resources/11.13.18.05/supplierNegotiations/{supplierNegotiationsUniqID}/child/sections/{SectionId}/child/requirements/{RequirementId}/child/acceptableResponseScoreValues
Request
Path Parameters
-
RequirementId(required): integer(int64)
Value that uniquely identifies the requirement.
-
SectionId(required): integer(int64)
Value that uniquely identifies the section.
-
supplierNegotiationsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Supplier Negotiations resource and used to uniquely identify an instance of Supplier Negotiations. The client should not generate the hash key value. Instead, the client should query on the Supplier Negotiations collection resource in order to navigate to a specific instance of Supplier Negotiations to get the hash key.
Header Parameters
-
Metadata-Context: string
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: string
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: string
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-
AttachmentsFromSuppliers: string
Title:
Attachments from SuppliersMaximum Length:80Requirement for each supplier attachment. Values include Not Allowed, Optional, or Required. A list of accepted values is defined in the lookup type PON_REQ_ALLOW_ATTACHMENT. -
AttachmentsFromSuppliersCode: string
Title:
Attachments from Suppliers CodeMaximum Length:30Abbreviation that uniquely identifies the requirement for each supplier attachment. Values include Not Allowed, Optional, or Required. A list of accepted values is defined in the lookup type PON_REQ_ALLOW_ATTACHMENT. -
DateFromRange: string
(date)
Title:
Date from RangeStart date in the range of values. Applies for date attributes. -
DateTimeFromRange: string
(date-time)
Title:
Date Time from RangeStart date and time in the range of values. Applies for date and time attributes. -
DateTimeToRange: string
(date-time)
Title:
Date Time to RangeEnd date and time in the range of values. Applies for date and time attributes. -
DateToRange: string
(date)
Title:
Date to RangeEnd Date in the range of values. Applies for date attributes. -
NumberFromRange: number
Title:
Number from RangeLowest number in a range of values. Applies for number attributes. -
NumberToRange: number
Title:
Number to RangeHighest number in a range of values. Applies for number attributes. -
Score: number
Title:
ScoreScore that the application assigns to each attribute response. -
TargetFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, then set the value that the application is willing to accept as the target response value for the requirement. If false, then do not set. The default value is false. -
TextValue: string
Title:
Text Response ValueMaximum Length:1000Value that the user entered. This value is applicable for text values.
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 : supplierNegotiations-sections-requirements-acceptableResponseScoreValues-item-response
Type:
Show Source
object-
AttachmentsFromSuppliers: string
Title:
Attachments from SuppliersMaximum Length:80Requirement for each supplier attachment. Values include Not Allowed, Optional, or Required. A list of accepted values is defined in the lookup type PON_REQ_ALLOW_ATTACHMENT. -
AttachmentsFromSuppliersCode: string
Title:
Attachments from Suppliers CodeMaximum Length:30Abbreviation that uniquely identifies the requirement for each supplier attachment. Values include Not Allowed, Optional, or Required. A list of accepted values is defined in the lookup type PON_REQ_ALLOW_ATTACHMENT. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the acceptable response score value. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the user created the acceptable response score value. -
DateFromRange: string
(date)
Title:
Date from RangeStart date in the range of values. Applies for date attributes. -
DateTimeFromRange: string
(date-time)
Title:
Date Time from RangeStart date and time in the range of values. Applies for date and time attributes. -
DateTimeToRange: string
(date-time)
Title:
Date Time to RangeEnd date and time in the range of values. Applies for date and time attributes. -
DateToRange: string
(date)
Title:
Date to RangeEnd Date in the range of values. Applies for date attributes. -
ExcludeQuestionScoreFlag: boolean
Read Only:
trueMaximum Length:1Contains one of the following values: true or false. If true, it excludes the question from scoring. If false, it includes the question in scoring. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the acceptable response score value. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the acceptable response score value. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
NoResponseFlag: boolean
Read Only:
trueMaximum Length:1Contains one of the following values: true or false. If true, then allow the application to assign a score to each supplier who does not respond to an optional requirement. If false, then do not allow. The default value is false. -
NumberFromRange: number
Title:
Number from RangeLowest number in a range of values. Applies for number attributes. -
NumberToRange: number
Title:
Number to RangeHighest number in a range of values. Applies for number attributes. -
RequirementId: integer
(int64)
Read Only:
trueValue that uniquely identifies the requirement. -
Score: number
Title:
ScoreScore that the application assigns to each attribute response. -
ScoreDisplayNumber: string
Read Only:
trueMaximum Length:80Value that uniquely identifies the score display. The application sets this value for each requirement that uses Multiple Choice With Single Selection or Multiple Choice With Multiple Selections. It also sets this value for each response that replies to a number, date, or date time requirement. -
ScoreId: integer
(int64)
Read Only:
trueValue that uniquely identifies the score. -
Section: string
Title:
SectionRead Only:trueName of the requirement section. -
SectionId: integer
(int64)
Read Only:
trueValue that uniquely identifies the section. -
TargetFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, then set the value that the application is willing to accept as the target response value for the requirement. If false, then do not set. The default value is false. -
TextValue: string
Title:
Text Response ValueMaximum Length:1000Value that the user entered. This value is applicable for text values.
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.
Examples
This example describes how to create a value.
Example cURL Command
Use the following cURL command to submit a request on the REST
resource.
curl -u username:password "https://servername/fscmRestApi/resources/version/supplierNegotiations/supplierNegotiationsUniqID/child/sections/SectionId/child/requirements/RequirementId/child/acceptableResponseScoreValues"
For example:
curl -u username:password "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100543794976/child/sections/300100543793265/child/requirements/300100543793301/child/acceptableResponseScoreValues"
Example Request Body
The following example includes the contents of the request body in
JSON format.
{
"TextValue": "0 to 5 years",
"AttachmentsFromSuppliers": "Optional"
}Example Response Body
The following example includes the contents of the response body in JSON format:
{
"RequirementId": 300100543793301,
"ScoreId": 300100543793303,
"TargetFlag": false,
"NoResponseFlag": false,
"ScoreDisplayNumber": "a.",
"TextValue": "0 to 5 years",
"NumberFromRange": null,
"NumberToRange": null,
"DateFromRange": null,
"DateToRange": null,
"DateTimeFromRange": null,
"DateTimeToRange": null,
"AttachmentsFromSuppliersCode": "OPTIONAL",
"AttachmentsFromSuppliers": "Optional",
"Score": null,
"CreatedBy": "CVBUYER01",
"CreationDate": "2021-06-09T00:53:54+00:00",
"LastUpdateDate": "2021-06-09T00:53:54.075+00:00",
"LastUpdatedBy": "CVBUYER01",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100543794976/child/sections/300100543793265/child/requirements/300100543793301/child/acceptableResponseScoreValues/300100543793303",
"name": "acceptableResponseScoreValues",
"kind": "item",
...
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100543794976/child/sections/300100543793265/child/requirements/300100543793301/child/acceptableResponseScoreValues/300100543793303",
"name": "acceptableResponseScoreValues",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100543794976/child/sections/300100543793265/child/requirements/300100543793301",
"name": "requirements",
"kind": "item"
}
]
}