Create one value

post

/fscmRestApi/resources/11.13.18.05/supplierNegotiations/{supplierNegotiationsUniqID}/child/sections/{SectionId}/child/requirements/{RequirementId}/child/acceptableResponseScoreValues

Request

Path Parameters
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
  • Title: Attachments from Suppliers
    Maximum Length: 80
    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.
  • Title: Attachments from Suppliers Code
    Maximum Length: 30
    Abbreviation 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.
  • Title: Date from Range
    Start date in the range of values. Applies for date attributes.
  • Title: Date Time from Range
    Start date and time in the range of values. Applies for date and time attributes.
  • Title: Date Time to Range
    End date and time in the range of values. Applies for date and time attributes.
  • Title: Date to Range
    End Date in the range of values. Applies for date attributes.
  • Title: Number from Range
    Lowest number in a range of values. Applies for number attributes.
  • Title: Number to Range
    Highest number in a range of values. Applies for number attributes.
  • Title: Score
    Score that the application assigns to each attribute response.
  • Maximum Length: 1
    Contains 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.
  • Title: Text Response Value
    Maximum Length: 1000
    Value that the user entered. This value is applicable for text values.
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 : supplierNegotiations-sections-requirements-acceptableResponseScoreValues-item-response
Type: object
Show Source
  • Title: Attachments from Suppliers
    Maximum Length: 80
    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.
  • Title: Attachments from Suppliers Code
    Maximum Length: 30
    Abbreviation 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.
  • Read Only: true
    Maximum Length: 64
    User who created the acceptable response score value.
  • Read Only: true
    Date and time when the user created the acceptable response score value.
  • Title: Date from Range
    Start date in the range of values. Applies for date attributes.
  • Title: Date Time from Range
    Start date and time in the range of values. Applies for date and time attributes.
  • Title: Date Time to Range
    End date and time in the range of values. Applies for date and time attributes.
  • Title: Date to Range
    End Date in the range of values. Applies for date attributes.
  • Read Only: true
    Date and time when the user most recently updated the acceptable response score value.
  • Read Only: true
    Maximum Length: 64
    User who most recently updated the acceptable response score value.
  • Links
  • Read Only: true
    Maximum Length: 1
    Contains 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.
  • Title: Number from Range
    Lowest number in a range of values. Applies for number attributes.
  • Title: Number to Range
    Highest number in a range of values. Applies for number attributes.
  • Read Only: true
    Value that uniquely identifies the requirement.
  • Title: Score
    Score that the application assigns to each attribute response.
  • Read Only: true
    Maximum Length: 80
    Value 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.
  • Read Only: true
    Value that uniquely identifies the score.
  • Title: Section
    Read Only: true
    Name of the requirement section.
  • Read Only: true
    Value that uniquely identifies the section.
  • Maximum Length: 1
    Contains 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.
  • Title: Text Response Value
    Maximum Length: 1000
    Value that the user entered. This value is applicable for text values.
Back to Top

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"
        }
    ]
}
Back to Top