Create alternate supplier sites
post
/fscmRestApi/resources/11.13.18.05/channelPrograms/{ProgramId}/child/alternateSupplierSites
Request
Path Parameters
-
ProgramId(required): integer(int64)
Value that uniquely identifies the channel program. It is a primary key that the application generates when it creates the program.
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AlternateSupplierSiteId: integer
(int64)
Value that uniquely identifies the alternate supplier site.
-
ProcurementBusinessUnit: string
Name of the procurement business unit.
-
ProcurementBusinessUnitId: integer
Value that uniquely identifies the procurement business unit.
-
Supplier: string
Name of the alternate supplier supporting the channel program.
-
SupplierId: integer
Value that uniquely identifies the alternate supplier.
-
SupplierNumber: string
Number that identifies the alternate supplier.
-
SupplierSite: string
Maximum Length:
240Name of the alternate supplier site. -
SupplierSiteAddress: string
Maximum Length:
4000Address of the alternate supplier site. -
SupplierSiteId: integer
(int64)
Value that identifies the alternate supplier site.
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 : channelPrograms-alternateSupplierSites-item-response
Type:
Show Source
object-
AlternateSupplierSiteId: integer
(int64)
Value that uniquely identifies the alternate supplier site.
-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the user created the record. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the record. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the record. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProcurementBusinessUnit: string
Name of the procurement business unit.
-
ProcurementBusinessUnitId: integer
Value that uniquely identifies the procurement business unit.
-
Supplier: string
Name of the alternate supplier supporting the channel program.
-
SupplierId: integer
Value that uniquely identifies the alternate supplier.
-
SupplierNumber: string
Number that identifies the alternate supplier.
-
SupplierSite: string
Maximum Length:
240Name of the alternate supplier site. -
SupplierSiteAddress: string
Maximum Length:
4000Address of the alternate supplier site. -
SupplierSiteId: integer
(int64)
Value that identifies the alternate supplier site.
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 alternate supplier sites.
Example cURL Command
Use the following cURL command to submit a request on the REST
resource:
curl -u username:password "server:port/fscmRestApi/resources/latest/channelPrograms/300100546485419/child/alternateSupplierSites"
Example Request Body
The following shows an example of the request body in JSON format.
"{
""Supplier"": ""Supplier3341"",
""SupplierSite"": ""GE PLASTICS_HQ""
}"
Example Response Body
The following shows an example of the response body in JSON format.
"{
""AlternateSupplierSiteId"": 300100550572294,
""Supplier"": ""Supplier3341"",
""SupplierId"": 34893,
""SupplierNumber"": ""24895"",
""SupplierSite"": ""GE PLASTICS_HQ"",
""SupplierSiteId"": 34893,
""SupplierSiteAddress"": ""500 Oracle Parkway,BRISBANE, CA 94065"",
""ProcurementBusinessUnit"": ""Vision Operations"",
""ProcurementBusinessUnitId"": 204,
""CreatedBy"": ""channel_user"",
""CreationDate"": ""2021-06-08T06:07:03+00:00"",
""LastUpdatedBy"": ""channel_user"",
""LastUpdateDate"": ""2021-06-08T06:07:04.859+00:00"",
""links"": [
{
""rel"": ""self"",
""href"": ""https://servername/fscmRestApi/resources/version/channelPrograms/300100550572291/child/alternateSupplierSites/300100550572294"",
""name"": ""alternateSupplierSites"",
""kind"": ""item"",
""properties"": {
""changeIndicator"": ""ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178""
}
},
{
""rel"": ""canonical"",
""href"": ""https://servername/fscmRestApi/resources/version/channelPrograms/300100550572291/child/alternateSupplierSites/300100550572294"",
""name"": ""alternateSupplierSites"",
""kind"": ""item""
},
{
""rel"": ""parent"",
""href"": ""https://servername/fscmRestApi/resources/version/channelPrograms/300100550572291"",
""name"": ""channelPrograms"",
""kind"": ""item""
}
]
}"