Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
939 B
4
Indexable
Never
curl --location 'https://instance12-test-ostaraapi.ostarasystems.net/v1/WorkOrder/Create' \
--header 'Authorization: Basic a2F0YWxvbi5hcGk6SWQyRWxPRklXanNGQ1lvekt2bmdsMVIxWlN3Z01EVWdSR1ZqSURJd01qTWdNVEE2TWpZNk1ERWdSMDFV' \
--header 'Content-Type: multipart/form-data' \
--header 'Cookie: T3N0YXJhQXBpQXV0aENvb2tpZQ2=VXNlcklkPTIzNTI2wqxVc2VyTmFtZT1rYXRhbG9uLmFwacKsQ2xpZW50TWFuYWdlbWVudENvbXBhbnlJZD020' \
--form 'data="{
\"typeOfWorkOrder\":\"Reactive\",
\"buildingNumber\":\"8888\",
\"reason\":\"Accidental Damage\",
\"symptom\":\"Damaged\",
\"tasks\":[
{
\"workOrderType\":\"Internal Building Fabric\",
\"subWorkOrderType\":\"Lifts\",
\"taskType\":\"Passenger Lift\"
}
],
\"contact\":{
\"type\":\"General Manager\",
\"name\":\"GM - Test\",
\"telephone\":\"09876 543210\",
\"email\":\"test@test.com\"
},
\"locations\":[
{
\"block\":\"Main Building\",
\"level\":\"Ground Floor\",
\"area\":\"Back of House\",
\"location\":\"Office\"
}
]
}"'
Leave a Comment