SupplierConnect Gateway API

<back to all web services

ScheduleRequest

Creates or Reschedules a SupplierConnect schedule. This will return the id of the schedule request created and the communication id of the notification sent.

Requires Authentication
The following routes are available for this service:
POST/api/schedules
PUT/api/schedules/{RequestId}
ScheduleRequest Parameters:
NameParameterData TypeRequiredDescription
RequestIdpathGuidYesId of the schedule request to be recreated
ScheduleDateTimebodyDateTimeYesDate/Time of the activity
RequesterbodyContactInfoNo
SupplierbodyContactInfoNo
ProjectbodyProjectInfoNo
PurchaseOrderbodyPurchaseOrderInfoNo
ActivitybodyActivityReferenceNo
ParamsbodyList<ScheduleParams>No
AttachmentsbodyList<EmailAttachment>No
ContactInfo Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
NameformstringNo
EmailformstringNo
PhoneformstringNo
ContactReferenceformObjectReferenceNo
ObjectReference Parameters:
NameParameterData TypeRequiredDescription
RmsTableContextIdformGuidNo
AlternateKeyformstringNo
DataSourceInstanceIdformGuidNo
ProjectInfo Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
NameformstringNo
ReferenceformstringNo
DescriptionformstringNo
AddressformstringNo
HouseTypeformstringNo
ElevationformstringNo
CustomerNameformstringNo
SupervisorformContactInfoNo
ProjectReferenceformObjectReferenceNo
PurchaseOrderInfo Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
ReferenceformstringNo
PurchaseOrderReferenceformObjectReferenceNo
ActivityReference Parameters:
NameParameterData TypeRequiredDescription
NameformstringYesName/details of the activity
NotesformstringNo
ScheduleParams Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
EmailAttachment Parameters:
NameParameterData TypeRequiredDescription
FileNameformstringNo
ContentTypeformstringNo
PathformstringNo
UrlformstringNo
LengthformlongNo
StreamContentformstringNo
AttachmentTypeformAttachmentTypeNo
ProcessedAndUploadedAsBlobformboolNo
ScheduleResponse Parameters:
NameParameterData TypeRequiredDescription
ReferenceIdformGuidNo
CommunicationIdformGuidNo
SuccessformboolNo
MessageformstringNo
PayloadformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/schedules HTTP/1.1 
Host: production-eros-gateway-api-supplierconnect.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ScheduleDateTime":"0001-01-01T00:00:00.0000000","Requester":{"Name":"String","Email":"String","Phone":"String","ContactReference":{"AlternateKey":"String"}},"Supplier":{"Name":"String","Email":"String","Phone":"String","ContactReference":{"AlternateKey":"String"}},"Project":{"Name":"String","Reference":"String","Description":"String","Address":"String","HouseType":"String","Elevation":"String","CustomerName":"String","Supervisor":{"Name":"String","Email":"String","Phone":"String","ContactReference":{"AlternateKey":"String"}},"ProjectReference":{"AlternateKey":"String"}},"PurchaseOrder":{"Reference":"String","PurchaseOrderReference":{"AlternateKey":"String"}},"Activity":{"name":"String","notes":"String"},"Params":[{"Name":"String","Value":"String"}],"Attachments":[{"FileName":"String","ContentType":"String","Path":"String","Url":"String","Length":0,"StreamContent":"String","AttachmentType":"Url","ProcessedAndUploadedAsBlob":false}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Success":false,"Message":"String","Payload":"String"}