Released on Dec-03-2021
The following document is the specification of the REST API for the change request resource. It includes the model definition as well as all available operations. Possible actions are creating and retrieving a change request, updating a rejected change request and, partially updating an approved change request. Furthermore, the GET allows filtering using standard filter criteria.
The Change Management API provides a standardized client interface to the Change Management Systems for creating, tracking and managing change requests as a result of a change requested by a customer.
The API supports the ability to send requests to create a new change specifying the nature and severity of the change as well as all necessary related information. The API also includes mechanisms to search for and update existing change requests. Notifications are defined to provide information when a change request has been updated, including status changes.
Sr No. | Operation | Flow | Origin | Description |
---|---|---|---|---|
1 | CreateChangeManagement | Partner To Bell | Customer Initiated | Partner initiates a creation of Change Request. The API offer guaranteed message delivery. |
2 | PatchChangeManagement | Partner To Bell | Customer Initiated | Customer requests to update an existing Change into Bell (by Bell Change ID). The API offers guaranteed message delivery. In a Patch request, the customer should only be sending fields that need to be changed/updated and not the entire payload. |
3 | RetrieveChangeManagement | Partner To Bell | Customer Initiated | Get Change Request details for the given Bell Change ID. |
4 | ListChangeManagement | Partner To Bell | Customer Initiated | Get list of Change Requests. All Change Requestscreated internally by Bell or Externally by Partners can be retrieved for the given customer. |
5 | CreateHub | Utility | Customer Initiated | Create Hub to register a listener for all incoming communications/notifications from Bell to Customer. Hub enables publish and subscribe pattern for the create and update notifications. |
6 | GetHub | Utility | Customer Initiated | Retrieve Hub already created on Bell. Customer can retrieve all the listeners registered on hub for a specific Hub ID. |
7 | DeleteHub | Utility | Customer Initiated | Delete a Hub resource on Bell. Customer can delete registered Hub by Hub ID |
8 | GetMonitor | Utility | Customer Initiated | Retrieve the change status at any given point in time. This is mainly used when the operation is asynchronous. This function is optional; The client may chose to integrate it or not. |
9 | Publish Notification | Bell To Partner | Bell Initiated | Bell sends update notifications, status change notifications, outbound communications or BELL initiated Change Request notification via registered listener on Hub. |
curl --request POST \
--url ' ' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
--data '{"callback":"bamac","query":"fisaevlo"}'
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("POST", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => " ",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}");
Request request = new Request.Builder()
.url(" ")
.post(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
POST /ChangeManagement/v18/hub
ExternalID | Customer CR ID | |
Optional In Query | ||
string |
EventType | Type of event for which the customer wants to subscribe to notifications. If left blank, customer will subscribe to all events. | |
Optional In Query | ||
string |
CRID | Bell CR ID | |
Optional In Query | ||
Integer |
data | Data containing the callback endpoint to deliver the information | |
Required In Body | ||
string |
201 | Subscribed |
400 | Bad Request |
401 | Unauthorized
|
403 | Forbidden
|
404 | Not Found
|
405 | Method Not allowed
|
409 | Conflict
|
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", "", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
get /hub/{id}
ID | Hub ID | |
Required In Query | ||
string |
200 | Success |
404 | Bad Request |
401 | Unauthorized
|
403 | Forbidden
|
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", "", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
get /getChangeRequest/{id}
id | Identifier of the Change Request | |
Required In Query | ||
string |
200 | Ok
|
400 | Bad Request
|
401 | Unauthorized
|
403 | Forbidden
|
404 | Not Found
|
405 | Method Not allowed
|
409 | Conflict
|
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any unique value >= 8 chars)
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", " ", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => " ",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url(" ")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
get /changeRequest?fields=...&{filtering}
fields | Comma separated properties to display in response | |
Optional In Query | ||
string |
offset | Requested index for start of resources to be provided in response | |
Optional In Query | ||
string |
limit | Requested number of resources to be provided in response | |
Optional In Query | ||
string |
200 | Ok
|
400 | Bad Request
|
401 | Unauthorized
|
403 | Forbidden
|
404 | Not Found
|
405 | Method Not allowed
|
409 | Conflict
|
500 | Internal Server Error |
curl --request POST \
--url '' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
--data '{"actualEndTime":"2017-12-17T04:20:38.464Z","actualStartTime":"2021-01-08T10:17:19.714Z","budget":"sufkun","channel":"ebtetu","completionDate":"2008-07-20T17:04:41.986Z","currency":"MXN","description":"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.","externalId":"6399882011082752","impact":"dugo","plannedEndTime":"2008-05-27T04:10:42.216Z","plannedStartTime":"2019-07-10T03:53:10.503Z","priority":"foze","requestDate":"2013-03-29T14:02:45.993Z","requestType":"ipaavju","risk":"wovuis","riskMitigationPlan":"fibwi","riskValue":"53.01","scheduledDate":"2010-02-14T15:55:11.269Z","status":"lanair","attachment":[{"id":"8916794299383808","href":"numlop","size":5.39984186,"name":"Ola Figueroa","description":"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.","sizeUnit":"hepokdev","mimeType":"kocpas","url":"http://za.mg/duhbarbac","validFor":{"startDateTime":"2010-08-22T18:14:54.612Z","endDateTime":"2003-09-08T20:36:26.629Z"},"attachmentType":"isajci","content":"jumpe","@type":"wiilu","@baseType":"Attachment","@schemaLocation":"ilip"}],"workLog":{"createDateTime":"2005-03-05T18:48:45.121Z","description":"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.","lastUpdateDateTime":"Price","record":[{"dateTime":"2006-05-18T03:52:39.973Z","description":"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.","supportPerson":"hiwogta","@type":"zitma","@schemaLocation":"soczelvu","@baseType":"lucp"}],"@type":"maug","@schemaLocation":"juwtohet","@baseType":"lomuf"},"incident":[{"description":"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.","name":"Beatrice Figueroa","@type":"fuhk","@schemaLocation":"otane","@baseType":"dovub"}],"specification":{"description":"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.","href":"cura","id":"1134850807431168","name":"Raymond Evans","validFor":{"startDateTime":"2020-07-19T17:37:40.080Z","endDateTime":"2004-12-01T00:57:08.080Z"},"@type":"raehhiwi","@schemaLocation":"zipab","@baseType":"zepuzad"},"impactEntity":[{"description":"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.","href":"nopubok","id":"1816054724558848","@referredType":"fuguz"}],"characteristic":[{"name":"Dora Lopez","valueType":"96.48","value":"97.63","@type":"emmoww","@baseType":"azcaji","@schemaLocation":"cobatv"}],"targetEntity":[{"description":"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.","href":"niff","id":"8954506146480128","@referredType":"fufdeh"}],"relatedParty":[{"id":6848288766558208}],"resolution":{"code":"beewwog","description":"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.","name":"Lizzie Sherman","task":[{"id":5921264338206720}],"@type":"cekhedim","@schemaLocation":"deccigf","@baseType":"dedmom"},"sla":[{"href":"haeritl","id":"3648181369831424","name":"Georgia Oliver","@referredType":"zanojn"}],"relatedChangeRequest":[{"correlation":"bagp","description":"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.","href":"ziggi","id":"8082253406011392","@referredType":"fefo"}],"category":[{"href":"agav","id":"1898018542452736","name":"Edward Drake","@referredType":"alawevu"}],"note":[{"id":746697785344000}],"location":{"id":"8803511634493440","href":"wefpegij","name":"Erik Ruiz","role":"ofopja","@type":"peajicat","@baseType":"Place","@referredType":"leku","@schemaLocation":"fetaju","characteristic":[{"name":"Isabelle Curry","valueType":"74.72","value":"11.03","@type":"cahsioz","@baseType":"derud","@schemaLocation":"netoku"}],"geographicAddress":{"id":"4916483306029056","href":"inapaupi","streetNr":"Refi Ridge","streetNrSuffix":"Eceeco Pass","streetNrLast":"Zahek Center","streetNrLastSuffix":"Wuhpi Path","streetName":"Guha Ridge","streetType":"Romwu Highway","streetSuffix":"Detepa Heights","postcode":"R7P 2Y2","locality":"lekia","city":"Feezutap","stateOrProvince":"NT","country":"Iran","@type":"zazzen","@baseType":"GeographicAddress","@schemaLocation":"zajojah","geographicLocationRefOrValue":{"id":"3392702773198848","href":"pesozalo","name":"Francis Ruiz","geometryType":"ihve","accuracy":"6011661230052816","spatialRef":"jehu","@type":"fufz","@schemaLocation":"nupideir","geometry":[{"x":"tiwr","y":"igesu","z":"feawovo"}]},"geographicSubAddress":[{"id":"6257711272427520","href":"foogobi","type":"okipireo","name":"Owen Hill","subUnitType":"gius","subUnitNumber":"961131118067712","levelType":"likijaco","levelNumber":"1194275085746176","buildingName":"Myrtie Hall","privateStreetNumber":"Awji Point","privateStreetName":"Malo Drive","@type":"binelput","@baseType":"GeographicSubAddress","@schemaLocation":"udevbifo"}],"description":"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.","addressLine":"1980 Heplo Way","addressLine2":"584 Veace Lane","type":"tebo","externalId":"12600192532480","sourceSystemId":"6297252624596992","validated":false},"geographicSite":{"id":"4283959187865600","href":"gike","name":"William Norton","description":"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.","code":"izekuku","status":"zekuder","@baseType":"GeographicSite","@type":"ipodog","@schemaLocation":"siwasu","address":{"id":"991997319970816","href":"baawe","streetNr":"Haon Way","streetNrSuffix":"Gofcob Road","streetNrLast":"Otiiv Pike","streetNrLastSuffix":"Wutnos Extension","streetName":"Ranmo Ridge","streetType":"Jahvas Pass","streetSuffix":"Mezdu Court","postcode":"R7I 4C8","locality":"asevai","city":"Zokmece","stateOrProvince":"NL","country":"Syria","@type":"gihwuj","@baseType":"GeographicAddress","@schemaLocation":"kibnumv","geographicLocationRefOrValue":{"id":"2942866018009088","href":"larojorg","name":"Kenneth Ramos","geometryType":"gojuzj","accuracy":"5610099890191060","spatialRef":"omogunza","@type":"fajun","@schemaLocation":"pove","geometry":[{"x":"zohacg","y":"lacofveu","z":"sunluzig"}]},"geographicSubAddress":[{"id":"5763741570301952","href":"hejgu","type":"egwec","name":"Mabelle Jenkins","subUnitType":"taccerdi","subUnitNumber":"4464800140623872","levelType":"acuzima","levelNumber":"7157467358167040","buildingName":"Herbert Jackson","privateStreetNumber":"Suvis Grove","privateStreetName":"Fimig Circle","@type":"civaligv","@baseType":"GeographicSubAddress","@schemaLocation":"safowuhz"}],"description":"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.","addressLine":"169 Rijnet Heights","addressLine2":"1795 Wevbup Loop","type":"ugra","externalId":"1908364906856448","sourceSystemId":"5691945504473088","validated":false},"geographicLocation":{"id":"3089285053939712","href":"zagiev","name":"Dollie Chambers","geometryType":"nodu","accuracy":"4026780268792354","spatialRef":"nefu","@type":"ekui","@schemaLocation":"tulocehi","geometry":[{"x":"lumgeztu","y":"homuhv","z":"ovopioji"}]},"calendar":[{"status":"adedow","day":"cimsajuf","timeZone":"03:25","hourPeriod":[{"startHour":"22","endHour":"07"}]}],"relatedParty":[{"id":1837481802596352}],"siteRelationship":[{"id":"5359267760570368","href":"rehan","type":"gunem","role":"evebpep","validFor":{"startDateTime":"2007-09-10T06:49:11.621Z","endDateTime":"2001-04-18T01:11:36.787Z"}}],"externalId":"3968130051211264","sourceSystemId":"7617446825426944","tags":["mosadwuh"],"onSiteSubAddress":[{"id":"5551714008563712","href":"valakuo","type":"okvo","name":"Don Bass","subUnitType":"enpavjo","subUnitNumber":"4862629388484608","levelType":"woiznu","levelNumber":"4438784399638528","buildingName":"Celia Cole","privateStreetNumber":"Sudsi Heights","privateStreetName":"Siches Lane","@type":"dutasiv","@baseType":"GeographicSubAddress","@schemaLocation":"avludfud"}]}},"@type":"cirgugta","@schemaLocation":"ojainijo","@baseType":"opuculb"}'
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("POST", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}");
Request request = new Request.Builder()
.url(" ")
.post(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass
any unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
post /createChangeRequest
First Name | ||
Required In Body | ||
string |
Last Name | ||
Required In Body | ||
string |
CI Num | ||
Required In Body | ||
string |
Classification Id | ||
Required In Body | ||
string |
Action | ||
Optional In Body | ||
string |
Urgency | ||
Required In Body | ||
string |
Description | ||
Required In Body | ||
string |
Long Description | ||
Required In Body | ||
string |
Customer Requested Date | ||
Required In Body | ||
string |
202 | Accepted
|
400 | Bad Request
|
401 | Unauthorized
|
403 | Forbidden
|
404 | Not Found
|
405 | Method Not allowed
|
409 | Conflict
|
500 | Internal Server Error |
curl --request PATCH \
--url '' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any unique value >= 8 chars)
--data '{"actualEndTime":"2013-07-23T03:16:12.894Z","actualStartTime":"2004-03-06T04:14:23.666Z","budget":"abrabal","channel":"zuhui","completionDate":"2018-11-01T07:29:32.608Z","currency":"PKR","description":"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.","externalId":"2059101236363264","impact":"inlupce","plannedEndTime":"2020-08-01T21:28:32.727Z","plannedStartTime":"2018-04-13T12:23:13.178Z","priority":"epojoewu","requestDate":"2007-02-18T18:15:59.180Z","requestType":"fanal","risk":"sehpuv","riskMitigationPlan":"fonefiw","riskValue":"69.58","scheduledDate":"2020-04-11T03:29:47.781Z","status":"odkabep","attachment":[{"id":"3067186004361216","href":"bemuhp","size":38.06569157,"name":"Ray Jordan","description":"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.","sizeUnit":"giukuv","mimeType":"ernofe","url":"http://ce.co/ba","validFor":{"startDateTime":"2011-08-08T20:21:53.331Z","endDateTime":"2007-04-28T17:15:04.233Z"},"attachmentType":"ciwoduge","content":"fokawiv","@type":"hinwu","@baseType":"Attachment","@schemaLocation":"nuktak"}],"workLog":{"createDateTime":"2013-05-09T09:26:45.203Z","description":"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.","lastUpdateDateTime":"Bosch","record":[{"dateTime":"2008-06-09T14:08:02.249Z","description":"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.","supportPerson":"bukvojn","@type":"dokc","@schemaLocation":"hani","@baseType":"liidofa"}],"@type":"jovce","@schemaLocation":"peavon","@baseType":"fokm"},"incident":[{"description":"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.","name":"Adele Powers","@type":"ochi","@schemaLocation":"ozniv","@baseType":"gebe"}],"specification":{"description":"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.","href":"vilezu","id":"4434085931909120","name":"Isaiah Summers","validFor":{"startDateTime":"2006-07-10T16:18:24.448Z","endDateTime":"2020-03-16T07:49:49.864Z"},"@type":"sedo","@schemaLocation":"anobaazw","@baseType":"bank"},"impactEntity":[{"description":"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.","href":"azoze","id":"6120523780063232","@referredType":"balanm"}],"characteristic":[{"name":"Floyd Oliver","valueType":"14.29","value":"75.4","@type":"holen","@baseType":"madabav","@schemaLocation":"gaceta"}],"targetEntity":[{"description":"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.","href":"warnoc","id":"2525364479852544","@referredType":"feojaot"}],"relatedParty":[{"id":5623171986227200}],"resolution":{"code":"rehraobo","description":"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.","name":"Sallie Gonzalez","task":[{"id":2263640294031360}],"@type":"fijd","@schemaLocation":"odbugelo","@baseType":"salido"},"sla":[{"href":"jompis","id":"8026169374932992","name":"Aiden Lamb","@referredType":"mamabug"}],"relatedChangeRequest":[{"correlation":"vabvopoi","description":"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.","href":"baeczu","id":"7406882257895424","@referredType":"vovfolu"}],"category":[{"href":"wicg","id":"4160874520510464","name":"Tommy Tucker","@referredType":"venle"}],"note":[{"id":589233559437312}],"location":{"id":"9003756532269056","href":"dusara","name":"Brandon Fleming","role":"debke","@type":"gofusle","@baseType":"Place","@referredType":"losap","@schemaLocation":"rootm","characteristic":[{"name":"Eleanor Washington","valueType":"75.4","value":"42.17","@type":"igais","@baseType":"haisab","@schemaLocation":"sivedab"}],"geographicAddress":{"id":"331567928967168","href":"bunrok","streetNr":"Fastu Park","streetNrSuffix":"Ovivuc Boulevard","streetNrLast":"Vaifi Street","streetNrLastSuffix":"Zujjad Pass","streetName":"Poki Terrace","streetType":"Nanis Turnpike","streetSuffix":"Ugzo Highway","postcode":"G2U 3T2","locality":"mufugopo","city":"Gacajfeh","stateOrProvince":"NB","country":"South Georgia & South Sandwich Islands","@type":"tufs","@baseType":"GeographicAddress","@schemaLocation":"duzul","geographicLocationRefOrValue":{"id":"8979357141827584","href":"fafik","name":"Georgia Nichols","geometryType":"divhera","accuracy":"36166783670489","spatialRef":"ponge","@type":"mebonoz","@schemaLocation":"komo","geometry":[{"x":"uzujwo","y":"well","z":"saihv"}]},"geographicSubAddress":[{"id":"8302379092934656","href":"bemni","type":"soge","name":"Catherine Neal","subUnitType":"erdi","subUnitNumber":"384067954540544","levelType":"pido","levelNumber":"8222554460258304","buildingName":"Cordelia Curtis","privateStreetNumber":"Zojuc Place","privateStreetName":"Fosu Heights","@type":"sovruru","@baseType":"GeographicSubAddress","@schemaLocation":"agevadi"}],"description":"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.","addressLine":"302 Kifga Road","addressLine2":"1328 Amlih Trail","type":"hinebekz","externalId":"4688452951998464","sourceSystemId":"5753486257946624","validated":false},"geographicSite":{"id":"2291641197002752","href":"dahke","name":"Mathilda Hammond","description":"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.","code":"ihica","status":"pifejemo","@baseType":"GeographicSite","@type":"wadi","@schemaLocation":"tomeri","address":{"id":"5137582482522112","href":"gapvem","streetNr":"Fidge Turnpike","streetNrSuffix":"Evotuz Path","streetNrLast":"Rosdif Glen","streetNrLastSuffix":"Afoz Road","streetName":"Leif Drive","streetType":"Unuid Key","streetSuffix":"Ecoma Manor","postcode":"S0N 1Z2","locality":"cezeiva","city":"Ibeirewu","stateOrProvince":"QC","country":"Namibia","@type":"vicsoi","@baseType":"GeographicAddress","@schemaLocation":"juopf","geographicLocationRefOrValue":{"id":"5479191204069376","href":"fuplume","name":"Pearl Nelson","geometryType":"pere","accuracy":"4728638541223137","spatialRef":"vilikav","@type":"toims","@schemaLocation":"fooggu","geometry":[{"x":"tuni","y":"igkebo","z":"weglucta"}]},"geographicSubAddress":[{"id":"3545386987814912","href":"uswebro","type":"ucwuvo","name":"Lucinda Gilbert","subUnitType":"hiukhe","subUnitNumber":"1578175207309312","levelType":"uktidobz","levelNumber":"3872063422988288","buildingName":"Mattie Ingram","privateStreetNumber":"Tihzig Glen","privateStreetName":"Ragih Highway","@type":"pino","@baseType":"GeographicSubAddress","@schemaLocation":"cibicoa"}],"description":"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.","addressLine":"1821 Gimgom Heights","addressLine2":"295 Cuwadu Pass","type":"fowp","externalId":"6042604189777920","sourceSystemId":"2966773416591360","validated":false},"geographicLocation":{"id":"812428348620800","href":"udil","name":"Lewis Moran","geometryType":"atesmom","accuracy":"346580827217708","spatialRef":"wuthii","@type":"ugapoj","@schemaLocation":"jacm","geometry":[{"x":"maropiwu","y":"galf","z":"tahduz"}]},"calendar":[{"status":"kosmikot","day":"diolis","timeZone":"23:03","hourPeriod":[{"startHour":"08","endHour":"23"}]}],"relatedParty":[{"id":2823085042434048}],"siteRelationship":[{"id":"6210187069227008","href":"gienococ","type":"kotas","role":"unimami","validFor":{"startDateTime":"2007-03-19T08:18:51.392Z","endDateTime":"2020-05-29T22:14:12.996Z"}}],"externalId":"2182513696964608","sourceSystemId":"6509404100755456","tags":["pirucub"],"onSiteSubAddress":[{"id":"5270275142713344","href":"nirzibee","type":"luodwi","name":"Harriet Morris","subUnitType":"nihe","subUnitNumber":"2434437690163200","levelType":"ipra","levelNumber":"7746145996505088","buildingName":"Rebecca Morgan","privateStreetNumber":"Niipa Terrace","privateStreetName":"Wojce Parkway","@type":"ihkem","@baseType":"GeographicSubAddress","@schemaLocation":"punoacec"}]}},"@type":"johupiur","@schemaLocation":"abecic","@baseType":"melupdeg"}'
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("PATCH", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}");
Request request = new Request.Builder()
.url("")
.patch(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass
any unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
patch /patchChangeRequest/{id}
id | Bell CR ID; Identifier of the Change Request | |
Required In Query | ||
string |
Priority | The priority of the trouble ticket sent from the customer indicating how quickly the issue should be resolved | |
Optional In Body | ||
string |
relatedparty | Customer Contact Info. The related party(ies) that are associated to the ticket. | |
Optional In Body | ||
string |
Status | The current status of the change request. If Customer doesn't send this value then the API defaults it to NEW. | |
Optional In Body | ||
string |
Notes | The note(s) that are associated to the change. Additional Change Details, like worklog descriptions, communication logs, long descriptions. | |
Optional In Body | ||
string |
Attachment | File(s) attached to the change request. e.g. picture of broken device, scanning of a bill or charge | |
Optional In Body | ||
string |
External id | The Customer Change ID | |
Optional In Body | ||
string |
202 | Accepted
|
400 | Bad Request
|
401 | Unauthorized
|
403 | Forbidden
|
404 | Not Found
|
405 | Method Not allowed |
409 | Conflict
|
500 | Internal Server Error |
The following document is the specification of the REST API for the change request resource. It includes the model definition as well as all available operations. Possible actions are creating and retrieving a change request, updating a rejected change request and, partially updating an approved change request. Furthermore, the GET allows filtering using standard filter criteria.
The Change Management API provides a standardized client interface to the Change Management Systems for creating, tracking and managing change requests as a result of a change requested by a customer.
The API supports the ability to send requests to create a new change specifying the nature and severity of the change as well as all necessary related information. The API also includes mechanisms to search for and update existing change requests. Notifications are defined to provide information when a change request has been updated, including status changes.
Sr No. | Operation | Flow | Origin | Description |
---|---|---|---|---|
1 | CreateChangeManagement | Partner To Bell | Customer Initiated | Partner initiates a creation of Change Request. The API offer guaranteed message delivery. |
2 | PatchChangeManagement | Partner To Bell | Customer Initiated | Customer requests to update an existing Change into Bell (by Bell Change ID). The API offers guaranteed message delivery. In a Patch request, the customer should only be sending fields that need to be changed/updated and not the entire payload. |
3 | RetrieveChangeManagement | Partner To Bell | Customer Initiated | Get Change Request details for the given Bell Change ID. |
4 | ListChangeManagement | Partner To Bell | Customer Initiated | Get list of Change Requests. All Change Requestscreated internally by Bell or Externally by Partners can be retrieved for the given customer. |
5 | CreateHub | Utility | Customer Initiated | Create Hub to register a listener for all incoming communications/notifications from Bell to Customer. Hub enables publish and subscribe pattern for the create and update notifications. |
6 | GetHub | Utility | Customer Initiated | Retrieve Hub already created on Bell. Customer can retrieve all the listeners registered on hub for a specific Hub ID. |
7 | DeleteHub | Utility | Customer Initiated | Delete a Hub resource on Bell. Customer can delete registered Hub by Hub ID |
8 | GetMonitor | Utility | Customer Initiated | Retrieve the change status at any given point in time. This is mainly used when the operation is asynchronous. This function is optional; The client may chose to integrate it or not. |
9 | Publish Notification | Bell To Partner | Bell Initiated | Bell sends update notifications, status change notifications, outbound communications or BELL initiated Change Request notification via registered listener on Hub. |
curl --request POST \
--url ' ' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
--data '{"callback":"bamac","query":"fisaevlo"}'
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("POST", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => " ",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"callback\":\"bamac\",\"query\":\"fisaevlo\"}");
Request request = new Request.Builder()
.url(" ")
.post(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"id":42,
"query":"ExternalID=TEST_123",
"callback":"http://client.listener/notification"
}
POST /ChangeManagement/v18/hub
ExternalID | Customer CR ID | |
Optional In Query | ||
string |
EventType | Type of event for which the customer wants to subscribe to notifications. If left blank, customer will subscribe to all events. | |
Optional In Query | ||
string |
CRID | Bell CR ID | |
Optional In Query | ||
Integer |
data | Data containing the callback endpoint to deliver the information | |
Required In Body | ||
string |
201 | Subscribed |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not allowed |
409 | Conflict |
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", "", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
[
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification"
},
{
"id":42,
"query":"REQ12345",
"callback":"https://localhost:9043/acmeinc/notification1"
}
]
get /hub/{id}
ID | Hub ID | |
Required In Query | ||
string |
200 | Success |
404 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", "", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0909-01",
"id":"SR421426",
"priority":"STANDARD",
"status":"WBELLACK",
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"Cellphone",
"medium":{
"number":"1234567890"
}
},
{
"type":"Page",
"medium":{
"number":"12"
}
},
{
"type":"Email",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
},
{
"text":"worklog test description",
"noteType":"worklog",
"summary":"worklog test description_longdescription",
"logtype":"CLIENTNOTE"
}
]
}
get /getChangeRequest/{id}
id | Identifier of the Change Request | |
Required In Query | ||
string |
200 | Ok |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not allowed |
409 | Conflict |
500 | Internal Server Error |
curl --request GET \
--url '' \
--header 'accept: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any unique value >= 8 chars)
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
import http.client
conn = http.client.HTTPSConnection("")
headers = {
'SECURITY_CREDENTIALS',
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("GET", " ", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => " ",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url(" ")
.get()
.addHeader('SECURITY_CREDENTIALS')
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
[
{
"description":"D353 – Changement de configuration dans un coupe-feu",
"externalId":"SR327032",
"id":"mx_SR327032",
"requestDate":"2020-05-05T09:42:30Z",
"status":"acknowledged",
"characteristic":[
{
"name":"ZONE",
"value":"INTRA"
},
{
"name":"classStructureClassificationId",
"value":"410855050302"
}
],
"relatedParty":[
{
"id":"TESTUSER@DOMAIN",
"href":"_",
"role":"Originator",
"name":"cc or"
},
{
"id":"mx_GTDE",
"href":"_",
"role":"Customer"
}
],
"category":[
{
"id":"NSMIS"
}
],
"note":[
]
}
]
get /changeRequest?fields=...&{filtering}
fields | Comma separated properties to display in response | |
Optional In Query | ||
string |
offset | Requested index for start of resources to be provided in response | |
Optional In Query | ||
string |
limit | Requested number of resources to be provided in response | |
Optional In Query | ||
string |
200 | Ok |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not allowed |
409 | Conflict |
500 | Internal Server Error |
curl --request POST \
--url '' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any
unique value >= 8 chars)
--data '{"actualEndTime":"2017-12-17T04:20:38.464Z","actualStartTime":"2021-01-08T10:17:19.714Z","budget":"sufkun","channel":"ebtetu","completionDate":"2008-07-20T17:04:41.986Z","currency":"MXN","description":"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.","externalId":"6399882011082752","impact":"dugo","plannedEndTime":"2008-05-27T04:10:42.216Z","plannedStartTime":"2019-07-10T03:53:10.503Z","priority":"foze","requestDate":"2013-03-29T14:02:45.993Z","requestType":"ipaavju","risk":"wovuis","riskMitigationPlan":"fibwi","riskValue":"53.01","scheduledDate":"2010-02-14T15:55:11.269Z","status":"lanair","attachment":[{"id":"8916794299383808","href":"numlop","size":5.39984186,"name":"Ola Figueroa","description":"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.","sizeUnit":"hepokdev","mimeType":"kocpas","url":"http://za.mg/duhbarbac","validFor":{"startDateTime":"2010-08-22T18:14:54.612Z","endDateTime":"2003-09-08T20:36:26.629Z"},"attachmentType":"isajci","content":"jumpe","@type":"wiilu","@baseType":"Attachment","@schemaLocation":"ilip"}],"workLog":{"createDateTime":"2005-03-05T18:48:45.121Z","description":"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.","lastUpdateDateTime":"Price","record":[{"dateTime":"2006-05-18T03:52:39.973Z","description":"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.","supportPerson":"hiwogta","@type":"zitma","@schemaLocation":"soczelvu","@baseType":"lucp"}],"@type":"maug","@schemaLocation":"juwtohet","@baseType":"lomuf"},"incident":[{"description":"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.","name":"Beatrice Figueroa","@type":"fuhk","@schemaLocation":"otane","@baseType":"dovub"}],"specification":{"description":"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.","href":"cura","id":"1134850807431168","name":"Raymond Evans","validFor":{"startDateTime":"2020-07-19T17:37:40.080Z","endDateTime":"2004-12-01T00:57:08.080Z"},"@type":"raehhiwi","@schemaLocation":"zipab","@baseType":"zepuzad"},"impactEntity":[{"description":"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.","href":"nopubok","id":"1816054724558848","@referredType":"fuguz"}],"characteristic":[{"name":"Dora Lopez","valueType":"96.48","value":"97.63","@type":"emmoww","@baseType":"azcaji","@schemaLocation":"cobatv"}],"targetEntity":[{"description":"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.","href":"niff","id":"8954506146480128","@referredType":"fufdeh"}],"relatedParty":[{"id":6848288766558208}],"resolution":{"code":"beewwog","description":"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.","name":"Lizzie Sherman","task":[{"id":5921264338206720}],"@type":"cekhedim","@schemaLocation":"deccigf","@baseType":"dedmom"},"sla":[{"href":"haeritl","id":"3648181369831424","name":"Georgia Oliver","@referredType":"zanojn"}],"relatedChangeRequest":[{"correlation":"bagp","description":"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.","href":"ziggi","id":"8082253406011392","@referredType":"fefo"}],"category":[{"href":"agav","id":"1898018542452736","name":"Edward Drake","@referredType":"alawevu"}],"note":[{"id":746697785344000}],"location":{"id":"8803511634493440","href":"wefpegij","name":"Erik Ruiz","role":"ofopja","@type":"peajicat","@baseType":"Place","@referredType":"leku","@schemaLocation":"fetaju","characteristic":[{"name":"Isabelle Curry","valueType":"74.72","value":"11.03","@type":"cahsioz","@baseType":"derud","@schemaLocation":"netoku"}],"geographicAddress":{"id":"4916483306029056","href":"inapaupi","streetNr":"Refi Ridge","streetNrSuffix":"Eceeco Pass","streetNrLast":"Zahek Center","streetNrLastSuffix":"Wuhpi Path","streetName":"Guha Ridge","streetType":"Romwu Highway","streetSuffix":"Detepa Heights","postcode":"R7P 2Y2","locality":"lekia","city":"Feezutap","stateOrProvince":"NT","country":"Iran","@type":"zazzen","@baseType":"GeographicAddress","@schemaLocation":"zajojah","geographicLocationRefOrValue":{"id":"3392702773198848","href":"pesozalo","name":"Francis Ruiz","geometryType":"ihve","accuracy":"6011661230052816","spatialRef":"jehu","@type":"fufz","@schemaLocation":"nupideir","geometry":[{"x":"tiwr","y":"igesu","z":"feawovo"}]},"geographicSubAddress":[{"id":"6257711272427520","href":"foogobi","type":"okipireo","name":"Owen Hill","subUnitType":"gius","subUnitNumber":"961131118067712","levelType":"likijaco","levelNumber":"1194275085746176","buildingName":"Myrtie Hall","privateStreetNumber":"Awji Point","privateStreetName":"Malo Drive","@type":"binelput","@baseType":"GeographicSubAddress","@schemaLocation":"udevbifo"}],"description":"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.","addressLine":"1980 Heplo Way","addressLine2":"584 Veace Lane","type":"tebo","externalId":"12600192532480","sourceSystemId":"6297252624596992","validated":false},"geographicSite":{"id":"4283959187865600","href":"gike","name":"William Norton","description":"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.","code":"izekuku","status":"zekuder","@baseType":"GeographicSite","@type":"ipodog","@schemaLocation":"siwasu","address":{"id":"991997319970816","href":"baawe","streetNr":"Haon Way","streetNrSuffix":"Gofcob Road","streetNrLast":"Otiiv Pike","streetNrLastSuffix":"Wutnos Extension","streetName":"Ranmo Ridge","streetType":"Jahvas Pass","streetSuffix":"Mezdu Court","postcode":"R7I 4C8","locality":"asevai","city":"Zokmece","stateOrProvince":"NL","country":"Syria","@type":"gihwuj","@baseType":"GeographicAddress","@schemaLocation":"kibnumv","geographicLocationRefOrValue":{"id":"2942866018009088","href":"larojorg","name":"Kenneth Ramos","geometryType":"gojuzj","accuracy":"5610099890191060","spatialRef":"omogunza","@type":"fajun","@schemaLocation":"pove","geometry":[{"x":"zohacg","y":"lacofveu","z":"sunluzig"}]},"geographicSubAddress":[{"id":"5763741570301952","href":"hejgu","type":"egwec","name":"Mabelle Jenkins","subUnitType":"taccerdi","subUnitNumber":"4464800140623872","levelType":"acuzima","levelNumber":"7157467358167040","buildingName":"Herbert Jackson","privateStreetNumber":"Suvis Grove","privateStreetName":"Fimig Circle","@type":"civaligv","@baseType":"GeographicSubAddress","@schemaLocation":"safowuhz"}],"description":"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.","addressLine":"169 Rijnet Heights","addressLine2":"1795 Wevbup Loop","type":"ugra","externalId":"1908364906856448","sourceSystemId":"5691945504473088","validated":false},"geographicLocation":{"id":"3089285053939712","href":"zagiev","name":"Dollie Chambers","geometryType":"nodu","accuracy":"4026780268792354","spatialRef":"nefu","@type":"ekui","@schemaLocation":"tulocehi","geometry":[{"x":"lumgeztu","y":"homuhv","z":"ovopioji"}]},"calendar":[{"status":"adedow","day":"cimsajuf","timeZone":"03:25","hourPeriod":[{"startHour":"22","endHour":"07"}]}],"relatedParty":[{"id":1837481802596352}],"siteRelationship":[{"id":"5359267760570368","href":"rehan","type":"gunem","role":"evebpep","validFor":{"startDateTime":"2007-09-10T06:49:11.621Z","endDateTime":"2001-04-18T01:11:36.787Z"}}],"externalId":"3968130051211264","sourceSystemId":"7617446825426944","tags":["mosadwuh"],"onSiteSubAddress":[{"id":"5551714008563712","href":"valakuo","type":"okvo","name":"Don Bass","subUnitType":"enpavjo","subUnitNumber":"4862629388484608","levelType":"woiznu","levelNumber":"4438784399638528","buildingName":"Celia Cole","privateStreetNumber":"Sudsi Heights","privateStreetName":"Siches Lane","@type":"dutasiv","@baseType":"GeographicSubAddress","@schemaLocation":"avludfud"}]}},"@type":"cirgugta","@schemaLocation":"ojainijo","@baseType":"opuculb"}'
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("POST", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"actualEndTime\":\"2017-12-17T04:20:38.464Z\",\"actualStartTime\":\"2021-01-08T10:17:19.714Z\",\"budget\":\"sufkun\",\"channel\":\"ebtetu\",\"completionDate\":\"2008-07-20T17:04:41.986Z\",\"currency\":\"MXN\",\"description\":\"Sidjepbar tuip haw mashuk vuluw hibru habses wec ke ru zi facpupru re utsefliv ocidin.\",\"externalId\":\"6399882011082752\",\"impact\":\"dugo\",\"plannedEndTime\":\"2008-05-27T04:10:42.216Z\",\"plannedStartTime\":\"2019-07-10T03:53:10.503Z\",\"priority\":\"foze\",\"requestDate\":\"2013-03-29T14:02:45.993Z\",\"requestType\":\"ipaavju\",\"risk\":\"wovuis\",\"riskMitigationPlan\":\"fibwi\",\"riskValue\":\"53.01\",\"scheduledDate\":\"2010-02-14T15:55:11.269Z\",\"status\":\"lanair\",\"attachment\":[{\"id\":\"8916794299383808\",\"href\":\"numlop\",\"size\":5.39984186,\"name\":\"Ola Figueroa\",\"description\":\"Gujof fi tutzatgud luzuzca vuolazo uk bepug tajoim gensez iloupivu huh hug pujir levaw zuvwa hega fop riva.\",\"sizeUnit\":\"hepokdev\",\"mimeType\":\"kocpas\",\"url\":\"http://za.mg/duhbarbac\",\"validFor\":{\"startDateTime\":\"2010-08-22T18:14:54.612Z\",\"endDateTime\":\"2003-09-08T20:36:26.629Z\"},\"attachmentType\":\"isajci\",\"content\":\"jumpe\",\"@type\":\"wiilu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"ilip\"}],\"workLog\":{\"createDateTime\":\"2005-03-05T18:48:45.121Z\",\"description\":\"Ek ri laib su hortemilo avu covtefur hok ku rah revditene mawogsuv cisdumkoj ih.\",\"lastUpdateDateTime\":\"Price\",\"record\":[{\"dateTime\":\"2006-05-18T03:52:39.973Z\",\"description\":\"Zafan kor edimigsed garap ifkiji pemciji we dodhuw soma lar ivi kijfe akabuv jamto nipmeutu te ope retakjog.\",\"supportPerson\":\"hiwogta\",\"@type\":\"zitma\",\"@schemaLocation\":\"soczelvu\",\"@baseType\":\"lucp\"}],\"@type\":\"maug\",\"@schemaLocation\":\"juwtohet\",\"@baseType\":\"lomuf\"},\"incident\":[{\"description\":\"Ahu riol newon noudevig ozoho ojta cus nikal sace moihbew osuenvid wepkeg.\",\"name\":\"Beatrice Figueroa\",\"@type\":\"fuhk\",\"@schemaLocation\":\"otane\",\"@baseType\":\"dovub\"}],\"specification\":{\"description\":\"Kaltarag vod bic kec wu kafekru mo iti ofoariku huc utze iz leorepi laas jejo raleb hik mes.\",\"href\":\"cura\",\"id\":\"1134850807431168\",\"name\":\"Raymond Evans\",\"validFor\":{\"startDateTime\":\"2020-07-19T17:37:40.080Z\",\"endDateTime\":\"2004-12-01T00:57:08.080Z\"},\"@type\":\"raehhiwi\",\"@schemaLocation\":\"zipab\",\"@baseType\":\"zepuzad\"},\"impactEntity\":[{\"description\":\"Pefa idrah wi vajlokmi zemjumo ni eve ko lor un lut ujupetos utol soziv be uzu bek zopat.\",\"href\":\"nopubok\",\"id\":\"1816054724558848\",\"@referredType\":\"fuguz\"}],\"characteristic\":[{\"name\":\"Dora Lopez\",\"valueType\":\"96.48\",\"value\":\"97.63\",\"@type\":\"emmoww\",\"@baseType\":\"azcaji\",\"@schemaLocation\":\"cobatv\"}],\"targetEntity\":[{\"description\":\"Hiw iha zoez daakigeg wira pulupupo cunefi netji ema ugomijpul ge jefef.\",\"href\":\"niff\",\"id\":\"8954506146480128\",\"@referredType\":\"fufdeh\"}],\"relatedParty\":[{\"id\":6848288766558208}],\"resolution\":{\"code\":\"beewwog\",\"description\":\"Feppi ho negni awtuvebu ma atoevuhih pabotivus riw baghu za rapvin rawona razezsa cedce.\",\"name\":\"Lizzie Sherman\",\"task\":[{\"id\":5921264338206720}],\"@type\":\"cekhedim\",\"@schemaLocation\":\"deccigf\",\"@baseType\":\"dedmom\"},\"sla\":[{\"href\":\"haeritl\",\"id\":\"3648181369831424\",\"name\":\"Georgia Oliver\",\"@referredType\":\"zanojn\"}],\"relatedChangeRequest\":[{\"correlation\":\"bagp\",\"description\":\"Mojuhrop vuiw musmapud lamwe zuig le zolca ceruvdog cov ririrat mapponac ci buw ohazavvis epuma gaivo ciuz.\",\"href\":\"ziggi\",\"id\":\"8082253406011392\",\"@referredType\":\"fefo\"}],\"category\":[{\"href\":\"agav\",\"id\":\"1898018542452736\",\"name\":\"Edward Drake\",\"@referredType\":\"alawevu\"}],\"note\":[{\"id\":746697785344000}],\"location\":{\"id\":\"8803511634493440\",\"href\":\"wefpegij\",\"name\":\"Erik Ruiz\",\"role\":\"ofopja\",\"@type\":\"peajicat\",\"@baseType\":\"Place\",\"@referredType\":\"leku\",\"@schemaLocation\":\"fetaju\",\"characteristic\":[{\"name\":\"Isabelle Curry\",\"valueType\":\"74.72\",\"value\":\"11.03\",\"@type\":\"cahsioz\",\"@baseType\":\"derud\",\"@schemaLocation\":\"netoku\"}],\"geographicAddress\":{\"id\":\"4916483306029056\",\"href\":\"inapaupi\",\"streetNr\":\"Refi Ridge\",\"streetNrSuffix\":\"Eceeco Pass\",\"streetNrLast\":\"Zahek Center\",\"streetNrLastSuffix\":\"Wuhpi Path\",\"streetName\":\"Guha Ridge\",\"streetType\":\"Romwu Highway\",\"streetSuffix\":\"Detepa Heights\",\"postcode\":\"R7P 2Y2\",\"locality\":\"lekia\",\"city\":\"Feezutap\",\"stateOrProvince\":\"NT\",\"country\":\"Iran\",\"@type\":\"zazzen\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"zajojah\",\"geographicLocationRefOrValue\":{\"id\":\"3392702773198848\",\"href\":\"pesozalo\",\"name\":\"Francis Ruiz\",\"geometryType\":\"ihve\",\"accuracy\":\"6011661230052816\",\"spatialRef\":\"jehu\",\"@type\":\"fufz\",\"@schemaLocation\":\"nupideir\",\"geometry\":[{\"x\":\"tiwr\",\"y\":\"igesu\",\"z\":\"feawovo\"}]},\"geographicSubAddress\":[{\"id\":\"6257711272427520\",\"href\":\"foogobi\",\"type\":\"okipireo\",\"name\":\"Owen Hill\",\"subUnitType\":\"gius\",\"subUnitNumber\":\"961131118067712\",\"levelType\":\"likijaco\",\"levelNumber\":\"1194275085746176\",\"buildingName\":\"Myrtie Hall\",\"privateStreetNumber\":\"Awji Point\",\"privateStreetName\":\"Malo Drive\",\"@type\":\"binelput\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"udevbifo\"}],\"description\":\"Etigurif gajcorvo pukeh jujalgum pi doidvu zihnoho od udpacup mah sogos ga va ruppo.\",\"addressLine\":\"1980 Heplo Way\",\"addressLine2\":\"584 Veace Lane\",\"type\":\"tebo\",\"externalId\":\"12600192532480\",\"sourceSystemId\":\"6297252624596992\",\"validated\":false},\"geographicSite\":{\"id\":\"4283959187865600\",\"href\":\"gike\",\"name\":\"William Norton\",\"description\":\"Nora ku tut nomtaari if fec fu zomvomap zerla wara cu ju.\",\"code\":\"izekuku\",\"status\":\"zekuder\",\"@baseType\":\"GeographicSite\",\"@type\":\"ipodog\",\"@schemaLocation\":\"siwasu\",\"address\":{\"id\":\"991997319970816\",\"href\":\"baawe\",\"streetNr\":\"Haon Way\",\"streetNrSuffix\":\"Gofcob Road\",\"streetNrLast\":\"Otiiv Pike\",\"streetNrLastSuffix\":\"Wutnos Extension\",\"streetName\":\"Ranmo Ridge\",\"streetType\":\"Jahvas Pass\",\"streetSuffix\":\"Mezdu Court\",\"postcode\":\"R7I 4C8\",\"locality\":\"asevai\",\"city\":\"Zokmece\",\"stateOrProvince\":\"NL\",\"country\":\"Syria\",\"@type\":\"gihwuj\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"kibnumv\",\"geographicLocationRefOrValue\":{\"id\":\"2942866018009088\",\"href\":\"larojorg\",\"name\":\"Kenneth Ramos\",\"geometryType\":\"gojuzj\",\"accuracy\":\"5610099890191060\",\"spatialRef\":\"omogunza\",\"@type\":\"fajun\",\"@schemaLocation\":\"pove\",\"geometry\":[{\"x\":\"zohacg\",\"y\":\"lacofveu\",\"z\":\"sunluzig\"}]},\"geographicSubAddress\":[{\"id\":\"5763741570301952\",\"href\":\"hejgu\",\"type\":\"egwec\",\"name\":\"Mabelle Jenkins\",\"subUnitType\":\"taccerdi\",\"subUnitNumber\":\"4464800140623872\",\"levelType\":\"acuzima\",\"levelNumber\":\"7157467358167040\",\"buildingName\":\"Herbert Jackson\",\"privateStreetNumber\":\"Suvis Grove\",\"privateStreetName\":\"Fimig Circle\",\"@type\":\"civaligv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"safowuhz\"}],\"description\":\"Sala ubuwu wom gutaro rup di ijku beobji cu mi heni bipluwoze tikhuk nurgu wa rog.\",\"addressLine\":\"169 Rijnet Heights\",\"addressLine2\":\"1795 Wevbup Loop\",\"type\":\"ugra\",\"externalId\":\"1908364906856448\",\"sourceSystemId\":\"5691945504473088\",\"validated\":false},\"geographicLocation\":{\"id\":\"3089285053939712\",\"href\":\"zagiev\",\"name\":\"Dollie Chambers\",\"geometryType\":\"nodu\",\"accuracy\":\"4026780268792354\",\"spatialRef\":\"nefu\",\"@type\":\"ekui\",\"@schemaLocation\":\"tulocehi\",\"geometry\":[{\"x\":\"lumgeztu\",\"y\":\"homuhv\",\"z\":\"ovopioji\"}]},\"calendar\":[{\"status\":\"adedow\",\"day\":\"cimsajuf\",\"timeZone\":\"03:25\",\"hourPeriod\":[{\"startHour\":\"22\",\"endHour\":\"07\"}]}],\"relatedParty\":[{\"id\":1837481802596352}],\"siteRelationship\":[{\"id\":\"5359267760570368\",\"href\":\"rehan\",\"type\":\"gunem\",\"role\":\"evebpep\",\"validFor\":{\"startDateTime\":\"2007-09-10T06:49:11.621Z\",\"endDateTime\":\"2001-04-18T01:11:36.787Z\"}}],\"externalId\":\"3968130051211264\",\"sourceSystemId\":\"7617446825426944\",\"tags\":[\"mosadwuh\"],\"onSiteSubAddress\":[{\"id\":\"5551714008563712\",\"href\":\"valakuo\",\"type\":\"okvo\",\"name\":\"Don Bass\",\"subUnitType\":\"enpavjo\",\"subUnitNumber\":\"4862629388484608\",\"levelType\":\"woiznu\",\"levelNumber\":\"4438784399638528\",\"buildingName\":\"Celia Cole\",\"privateStreetNumber\":\"Sudsi Heights\",\"privateStreetName\":\"Siches Lane\",\"@type\":\"dutasiv\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"avludfud\"}]}},\"@type\":\"cirgugta\",\"@schemaLocation\":\"ojainijo\",\"@baseType\":\"opuculb\"}");
Request request = new Request.Builder()
.url(" ")
.post(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass
any unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"description":"Billing, Contract, General Inquiries",
"externalId":"TESTCR-0608-04",
"priority":"STANDARD",
"requestDate":"2020-07-17T23:20:49.898Z",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"characteristic":[
{
"name":"classificationid",
"valueType":"string",
"value":"410515"
},
{
"name":"custrefnum",
"valueType":"string",
"value":"custrefnum test"
},
{
"name":"classstructurepath",
"valueType":"string",
"value":"classstructurepath test"
},
{
"name":"ciservicenumber",
"valueType":"string",
"value":"GTDE-NSMIS-GLOBAL"
}
],
"targetEntity":[
{
"id":"GTDE-NSMIS-GLOBAL"
}
],
"relatedParty":[
{
"role":"onbehalfof",
"name":"testuser"
},
{
"role":"originator",
"name":"TEST@USER"
},
{
"role":"affectedcustomer",
"name":"GTDE"
},
{
"role":"sitecontact",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"12345678"
}
},
{
"type":"mobile",
"medium":{
"number":"1234567890"
}
},
{
"type":"pager",
"medium":{
"number":"12"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"abc@gmail.com"
}
}
]
}
},
{
"role":"sitecontact2",
"individual":{
"givenName":"Test",
"familyName":"User",
"contactMedium":[
{
"type":"telephone",
"medium":{
"number":"98765432"
}
},
{
"type":"mobile",
"medium":{
"number":"9876543210"
}
},
{
"type":"pager",
"medium":{
"number":"21"
}
},
{
"type":"emailaddress",
"medium":{
"emailAddress":"cba@gmail.com"
}
}
]
}
}
],
"category":[
{
"id":"123",
"name":"commoditygroup"
}
],
"note":[
{
"text":"Cr Summary testing",
"noteType":"crsummary",
"summary":"Cr Summary"
},
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
post /createChangeRequest
First Name | ||
Required In Body | ||
string |
Last Name | ||
Required In Body | ||
string |
CI Num | ||
Required In Body | ||
string |
Classification Id | ||
Required In Body | ||
string |
Action | ||
Optional In Body | ||
string |
Urgency | ||
Required In Body | ||
string |
Description | ||
Required In Body | ||
string |
Long Description | ||
Required In Body | ||
string |
Customer Requested Date | ||
Required In Body | ||
string |
202 | Accepted |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not allowed |
409 | Conflict |
500 | Internal Server Error |
curl --request PATCH \
--url '' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'SECURITY_CREDENTIALS' \
--header 'x-external-system' \ (for use in sandbox mode only, pass any unique value >= 8 chars)
--data '{"actualEndTime":"2013-07-23T03:16:12.894Z","actualStartTime":"2004-03-06T04:14:23.666Z","budget":"abrabal","channel":"zuhui","completionDate":"2018-11-01T07:29:32.608Z","currency":"PKR","description":"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.","externalId":"2059101236363264","impact":"inlupce","plannedEndTime":"2020-08-01T21:28:32.727Z","plannedStartTime":"2018-04-13T12:23:13.178Z","priority":"epojoewu","requestDate":"2007-02-18T18:15:59.180Z","requestType":"fanal","risk":"sehpuv","riskMitigationPlan":"fonefiw","riskValue":"69.58","scheduledDate":"2020-04-11T03:29:47.781Z","status":"odkabep","attachment":[{"id":"3067186004361216","href":"bemuhp","size":38.06569157,"name":"Ray Jordan","description":"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.","sizeUnit":"giukuv","mimeType":"ernofe","url":"http://ce.co/ba","validFor":{"startDateTime":"2011-08-08T20:21:53.331Z","endDateTime":"2007-04-28T17:15:04.233Z"},"attachmentType":"ciwoduge","content":"fokawiv","@type":"hinwu","@baseType":"Attachment","@schemaLocation":"nuktak"}],"workLog":{"createDateTime":"2013-05-09T09:26:45.203Z","description":"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.","lastUpdateDateTime":"Bosch","record":[{"dateTime":"2008-06-09T14:08:02.249Z","description":"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.","supportPerson":"bukvojn","@type":"dokc","@schemaLocation":"hani","@baseType":"liidofa"}],"@type":"jovce","@schemaLocation":"peavon","@baseType":"fokm"},"incident":[{"description":"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.","name":"Adele Powers","@type":"ochi","@schemaLocation":"ozniv","@baseType":"gebe"}],"specification":{"description":"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.","href":"vilezu","id":"4434085931909120","name":"Isaiah Summers","validFor":{"startDateTime":"2006-07-10T16:18:24.448Z","endDateTime":"2020-03-16T07:49:49.864Z"},"@type":"sedo","@schemaLocation":"anobaazw","@baseType":"bank"},"impactEntity":[{"description":"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.","href":"azoze","id":"6120523780063232","@referredType":"balanm"}],"characteristic":[{"name":"Floyd Oliver","valueType":"14.29","value":"75.4","@type":"holen","@baseType":"madabav","@schemaLocation":"gaceta"}],"targetEntity":[{"description":"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.","href":"warnoc","id":"2525364479852544","@referredType":"feojaot"}],"relatedParty":[{"id":5623171986227200}],"resolution":{"code":"rehraobo","description":"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.","name":"Sallie Gonzalez","task":[{"id":2263640294031360}],"@type":"fijd","@schemaLocation":"odbugelo","@baseType":"salido"},"sla":[{"href":"jompis","id":"8026169374932992","name":"Aiden Lamb","@referredType":"mamabug"}],"relatedChangeRequest":[{"correlation":"vabvopoi","description":"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.","href":"baeczu","id":"7406882257895424","@referredType":"vovfolu"}],"category":[{"href":"wicg","id":"4160874520510464","name":"Tommy Tucker","@referredType":"venle"}],"note":[{"id":589233559437312}],"location":{"id":"9003756532269056","href":"dusara","name":"Brandon Fleming","role":"debke","@type":"gofusle","@baseType":"Place","@referredType":"losap","@schemaLocation":"rootm","characteristic":[{"name":"Eleanor Washington","valueType":"75.4","value":"42.17","@type":"igais","@baseType":"haisab","@schemaLocation":"sivedab"}],"geographicAddress":{"id":"331567928967168","href":"bunrok","streetNr":"Fastu Park","streetNrSuffix":"Ovivuc Boulevard","streetNrLast":"Vaifi Street","streetNrLastSuffix":"Zujjad Pass","streetName":"Poki Terrace","streetType":"Nanis Turnpike","streetSuffix":"Ugzo Highway","postcode":"G2U 3T2","locality":"mufugopo","city":"Gacajfeh","stateOrProvince":"NB","country":"South Georgia & South Sandwich Islands","@type":"tufs","@baseType":"GeographicAddress","@schemaLocation":"duzul","geographicLocationRefOrValue":{"id":"8979357141827584","href":"fafik","name":"Georgia Nichols","geometryType":"divhera","accuracy":"36166783670489","spatialRef":"ponge","@type":"mebonoz","@schemaLocation":"komo","geometry":[{"x":"uzujwo","y":"well","z":"saihv"}]},"geographicSubAddress":[{"id":"8302379092934656","href":"bemni","type":"soge","name":"Catherine Neal","subUnitType":"erdi","subUnitNumber":"384067954540544","levelType":"pido","levelNumber":"8222554460258304","buildingName":"Cordelia Curtis","privateStreetNumber":"Zojuc Place","privateStreetName":"Fosu Heights","@type":"sovruru","@baseType":"GeographicSubAddress","@schemaLocation":"agevadi"}],"description":"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.","addressLine":"302 Kifga Road","addressLine2":"1328 Amlih Trail","type":"hinebekz","externalId":"4688452951998464","sourceSystemId":"5753486257946624","validated":false},"geographicSite":{"id":"2291641197002752","href":"dahke","name":"Mathilda Hammond","description":"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.","code":"ihica","status":"pifejemo","@baseType":"GeographicSite","@type":"wadi","@schemaLocation":"tomeri","address":{"id":"5137582482522112","href":"gapvem","streetNr":"Fidge Turnpike","streetNrSuffix":"Evotuz Path","streetNrLast":"Rosdif Glen","streetNrLastSuffix":"Afoz Road","streetName":"Leif Drive","streetType":"Unuid Key","streetSuffix":"Ecoma Manor","postcode":"S0N 1Z2","locality":"cezeiva","city":"Ibeirewu","stateOrProvince":"QC","country":"Namibia","@type":"vicsoi","@baseType":"GeographicAddress","@schemaLocation":"juopf","geographicLocationRefOrValue":{"id":"5479191204069376","href":"fuplume","name":"Pearl Nelson","geometryType":"pere","accuracy":"4728638541223137","spatialRef":"vilikav","@type":"toims","@schemaLocation":"fooggu","geometry":[{"x":"tuni","y":"igkebo","z":"weglucta"}]},"geographicSubAddress":[{"id":"3545386987814912","href":"uswebro","type":"ucwuvo","name":"Lucinda Gilbert","subUnitType":"hiukhe","subUnitNumber":"1578175207309312","levelType":"uktidobz","levelNumber":"3872063422988288","buildingName":"Mattie Ingram","privateStreetNumber":"Tihzig Glen","privateStreetName":"Ragih Highway","@type":"pino","@baseType":"GeographicSubAddress","@schemaLocation":"cibicoa"}],"description":"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.","addressLine":"1821 Gimgom Heights","addressLine2":"295 Cuwadu Pass","type":"fowp","externalId":"6042604189777920","sourceSystemId":"2966773416591360","validated":false},"geographicLocation":{"id":"812428348620800","href":"udil","name":"Lewis Moran","geometryType":"atesmom","accuracy":"346580827217708","spatialRef":"wuthii","@type":"ugapoj","@schemaLocation":"jacm","geometry":[{"x":"maropiwu","y":"galf","z":"tahduz"}]},"calendar":[{"status":"kosmikot","day":"diolis","timeZone":"23:03","hourPeriod":[{"startHour":"08","endHour":"23"}]}],"relatedParty":[{"id":2823085042434048}],"siteRelationship":[{"id":"6210187069227008","href":"gienococ","type":"kotas","role":"unimami","validFor":{"startDateTime":"2007-03-19T08:18:51.392Z","endDateTime":"2020-05-29T22:14:12.996Z"}}],"externalId":"2182513696964608","sourceSystemId":"6509404100755456","tags":["pirucub"],"onSiteSubAddress":[{"id":"5270275142713344","href":"nirzibee","type":"luodwi","name":"Harriet Morris","subUnitType":"nihe","subUnitNumber":"2434437690163200","levelType":"ipra","levelNumber":"7746145996505088","buildingName":"Rebecca Morgan","privateStreetNumber":"Niipa Terrace","privateStreetName":"Wojce Parkway","@type":"ihkem","@baseType":"GeographicSubAddress","@schemaLocation":"punoacec"}]}},"@type":"johupiur","@schemaLocation":"abecic","@baseType":"melupdeg"}'
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
import http.client
conn = http.client.HTTPSConnection("")
payload = "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}"
headers = {
'SECURITY_CREDENTIALS',
'content-type': "application/json",
'accept': "application/json",
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
}
conn.request("PATCH", "", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json",
'SECURITY_CREDENTIALS',
'x-external-system' \ (for use in sandbox mode only, pass any unique
value >= 8 chars)
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"actualEndTime\":\"2013-07-23T03:16:12.894Z\",\"actualStartTime\":\"2004-03-06T04:14:23.666Z\",\"budget\":\"abrabal\",\"channel\":\"zuhui\",\"completionDate\":\"2018-11-01T07:29:32.608Z\",\"currency\":\"PKR\",\"description\":\"Onwuc su mapfipeg zawit wad jigaj gawvol wisun loh ozikzog foblize kigo ne osi fujkobvo revir satu.\",\"externalId\":\"2059101236363264\",\"impact\":\"inlupce\",\"plannedEndTime\":\"2020-08-01T21:28:32.727Z\",\"plannedStartTime\":\"2018-04-13T12:23:13.178Z\",\"priority\":\"epojoewu\",\"requestDate\":\"2007-02-18T18:15:59.180Z\",\"requestType\":\"fanal\",\"risk\":\"sehpuv\",\"riskMitigationPlan\":\"fonefiw\",\"riskValue\":\"69.58\",\"scheduledDate\":\"2020-04-11T03:29:47.781Z\",\"status\":\"odkabep\",\"attachment\":[{\"id\":\"3067186004361216\",\"href\":\"bemuhp\",\"size\":38.06569157,\"name\":\"Ray Jordan\",\"description\":\"Wolkakus pownahe ilugi nik tis bu dokewnod sirgehor lawu cupbuage catat aw hub miwasfa so bihni aru ev.\",\"sizeUnit\":\"giukuv\",\"mimeType\":\"ernofe\",\"url\":\"http://ce.co/ba\",\"validFor\":{\"startDateTime\":\"2011-08-08T20:21:53.331Z\",\"endDateTime\":\"2007-04-28T17:15:04.233Z\"},\"attachmentType\":\"ciwoduge\",\"content\":\"fokawiv\",\"@type\":\"hinwu\",\"@baseType\":\"Attachment\",\"@schemaLocation\":\"nuktak\"}],\"workLog\":{\"createDateTime\":\"2013-05-09T09:26:45.203Z\",\"description\":\"Minsasuh rudwaso wacratzap jogfa ijoso vo mev tapsingoj uhge bin ozlafduc tapdo desvusri mugamcu.\",\"lastUpdateDateTime\":\"Bosch\",\"record\":[{\"dateTime\":\"2008-06-09T14:08:02.249Z\",\"description\":\"Gip kujuhhit hercal suzti epza enra uju vucaba jik vi ca hus.\",\"supportPerson\":\"bukvojn\",\"@type\":\"dokc\",\"@schemaLocation\":\"hani\",\"@baseType\":\"liidofa\"}],\"@type\":\"jovce\",\"@schemaLocation\":\"peavon\",\"@baseType\":\"fokm\"},\"incident\":[{\"description\":\"Adi dekzihel zabro mutmaphaj jukupted tujmabhuz mov al ku juvjaasi semovob mutisa.\",\"name\":\"Adele Powers\",\"@type\":\"ochi\",\"@schemaLocation\":\"ozniv\",\"@baseType\":\"gebe\"}],\"specification\":{\"description\":\"Ep wieperi mogpe ral kivmuwbi ku notokra caevoevu ruwedo emfuz bubadim ri gud zimel.\",\"href\":\"vilezu\",\"id\":\"4434085931909120\",\"name\":\"Isaiah Summers\",\"validFor\":{\"startDateTime\":\"2006-07-10T16:18:24.448Z\",\"endDateTime\":\"2020-03-16T07:49:49.864Z\"},\"@type\":\"sedo\",\"@schemaLocation\":\"anobaazw\",\"@baseType\":\"bank\"},\"impactEntity\":[{\"description\":\"Zu lupsef ak lumed pu kam dimpiruj bucloliv mi toaf paejiho newjuwez ofimogi vekpu miga.\",\"href\":\"azoze\",\"id\":\"6120523780063232\",\"@referredType\":\"balanm\"}],\"characteristic\":[{\"name\":\"Floyd Oliver\",\"valueType\":\"14.29\",\"value\":\"75.4\",\"@type\":\"holen\",\"@baseType\":\"madabav\",\"@schemaLocation\":\"gaceta\"}],\"targetEntity\":[{\"description\":\"Ogecucci jigwalju owo vazefoma okeimafu cumebive nejiknek gorliwujo ca bi ken lonaf gunvernut juner gornose nojve dafkid naj.\",\"href\":\"warnoc\",\"id\":\"2525364479852544\",\"@referredType\":\"feojaot\"}],\"relatedParty\":[{\"id\":5623171986227200}],\"resolution\":{\"code\":\"rehraobo\",\"description\":\"Ub pe vuifa ujutasodu mo mulvoto bama vudedci zete zora sewamcu vabca le hiteshoh.\",\"name\":\"Sallie Gonzalez\",\"task\":[{\"id\":2263640294031360}],\"@type\":\"fijd\",\"@schemaLocation\":\"odbugelo\",\"@baseType\":\"salido\"},\"sla\":[{\"href\":\"jompis\",\"id\":\"8026169374932992\",\"name\":\"Aiden Lamb\",\"@referredType\":\"mamabug\"}],\"relatedChangeRequest\":[{\"correlation\":\"vabvopoi\",\"description\":\"Vovrowwoj etejaagu mi vemako arifute cinsok odesajej basud salvezigo rawit talo ju aro voebe lu da.\",\"href\":\"baeczu\",\"id\":\"7406882257895424\",\"@referredType\":\"vovfolu\"}],\"category\":[{\"href\":\"wicg\",\"id\":\"4160874520510464\",\"name\":\"Tommy Tucker\",\"@referredType\":\"venle\"}],\"note\":[{\"id\":589233559437312}],\"location\":{\"id\":\"9003756532269056\",\"href\":\"dusara\",\"name\":\"Brandon Fleming\",\"role\":\"debke\",\"@type\":\"gofusle\",\"@baseType\":\"Place\",\"@referredType\":\"losap\",\"@schemaLocation\":\"rootm\",\"characteristic\":[{\"name\":\"Eleanor Washington\",\"valueType\":\"75.4\",\"value\":\"42.17\",\"@type\":\"igais\",\"@baseType\":\"haisab\",\"@schemaLocation\":\"sivedab\"}],\"geographicAddress\":{\"id\":\"331567928967168\",\"href\":\"bunrok\",\"streetNr\":\"Fastu Park\",\"streetNrSuffix\":\"Ovivuc Boulevard\",\"streetNrLast\":\"Vaifi Street\",\"streetNrLastSuffix\":\"Zujjad Pass\",\"streetName\":\"Poki Terrace\",\"streetType\":\"Nanis Turnpike\",\"streetSuffix\":\"Ugzo Highway\",\"postcode\":\"G2U 3T2\",\"locality\":\"mufugopo\",\"city\":\"Gacajfeh\",\"stateOrProvince\":\"NB\",\"country\":\"South Georgia & South Sandwich Islands\",\"@type\":\"tufs\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"duzul\",\"geographicLocationRefOrValue\":{\"id\":\"8979357141827584\",\"href\":\"fafik\",\"name\":\"Georgia Nichols\",\"geometryType\":\"divhera\",\"accuracy\":\"36166783670489\",\"spatialRef\":\"ponge\",\"@type\":\"mebonoz\",\"@schemaLocation\":\"komo\",\"geometry\":[{\"x\":\"uzujwo\",\"y\":\"well\",\"z\":\"saihv\"}]},\"geographicSubAddress\":[{\"id\":\"8302379092934656\",\"href\":\"bemni\",\"type\":\"soge\",\"name\":\"Catherine Neal\",\"subUnitType\":\"erdi\",\"subUnitNumber\":\"384067954540544\",\"levelType\":\"pido\",\"levelNumber\":\"8222554460258304\",\"buildingName\":\"Cordelia Curtis\",\"privateStreetNumber\":\"Zojuc Place\",\"privateStreetName\":\"Fosu Heights\",\"@type\":\"sovruru\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"agevadi\"}],\"description\":\"Uwe zina babugfa elvo wugo fur jogtemo ru fub mo fed loekcoz nuidiaz ka ahovi eti judkalul bi.\",\"addressLine\":\"302 Kifga Road\",\"addressLine2\":\"1328 Amlih Trail\",\"type\":\"hinebekz\",\"externalId\":\"4688452951998464\",\"sourceSystemId\":\"5753486257946624\",\"validated\":false},\"geographicSite\":{\"id\":\"2291641197002752\",\"href\":\"dahke\",\"name\":\"Mathilda Hammond\",\"description\":\"Ruki tijon cov si desci ukoane tulu nin dopa dun ne kegizmur noidoros repni sopifen deti.\",\"code\":\"ihica\",\"status\":\"pifejemo\",\"@baseType\":\"GeographicSite\",\"@type\":\"wadi\",\"@schemaLocation\":\"tomeri\",\"address\":{\"id\":\"5137582482522112\",\"href\":\"gapvem\",\"streetNr\":\"Fidge Turnpike\",\"streetNrSuffix\":\"Evotuz Path\",\"streetNrLast\":\"Rosdif Glen\",\"streetNrLastSuffix\":\"Afoz Road\",\"streetName\":\"Leif Drive\",\"streetType\":\"Unuid Key\",\"streetSuffix\":\"Ecoma Manor\",\"postcode\":\"S0N 1Z2\",\"locality\":\"cezeiva\",\"city\":\"Ibeirewu\",\"stateOrProvince\":\"QC\",\"country\":\"Namibia\",\"@type\":\"vicsoi\",\"@baseType\":\"GeographicAddress\",\"@schemaLocation\":\"juopf\",\"geographicLocationRefOrValue\":{\"id\":\"5479191204069376\",\"href\":\"fuplume\",\"name\":\"Pearl Nelson\",\"geometryType\":\"pere\",\"accuracy\":\"4728638541223137\",\"spatialRef\":\"vilikav\",\"@type\":\"toims\",\"@schemaLocation\":\"fooggu\",\"geometry\":[{\"x\":\"tuni\",\"y\":\"igkebo\",\"z\":\"weglucta\"}]},\"geographicSubAddress\":[{\"id\":\"3545386987814912\",\"href\":\"uswebro\",\"type\":\"ucwuvo\",\"name\":\"Lucinda Gilbert\",\"subUnitType\":\"hiukhe\",\"subUnitNumber\":\"1578175207309312\",\"levelType\":\"uktidobz\",\"levelNumber\":\"3872063422988288\",\"buildingName\":\"Mattie Ingram\",\"privateStreetNumber\":\"Tihzig Glen\",\"privateStreetName\":\"Ragih Highway\",\"@type\":\"pino\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"cibicoa\"}],\"description\":\"Buldeed jam tatzi bos obu fug raepe ninha ti zacko wonideb jopku zizog bu apheez ab uw.\",\"addressLine\":\"1821 Gimgom Heights\",\"addressLine2\":\"295 Cuwadu Pass\",\"type\":\"fowp\",\"externalId\":\"6042604189777920\",\"sourceSystemId\":\"2966773416591360\",\"validated\":false},\"geographicLocation\":{\"id\":\"812428348620800\",\"href\":\"udil\",\"name\":\"Lewis Moran\",\"geometryType\":\"atesmom\",\"accuracy\":\"346580827217708\",\"spatialRef\":\"wuthii\",\"@type\":\"ugapoj\",\"@schemaLocation\":\"jacm\",\"geometry\":[{\"x\":\"maropiwu\",\"y\":\"galf\",\"z\":\"tahduz\"}]},\"calendar\":[{\"status\":\"kosmikot\",\"day\":\"diolis\",\"timeZone\":\"23:03\",\"hourPeriod\":[{\"startHour\":\"08\",\"endHour\":\"23\"}]}],\"relatedParty\":[{\"id\":2823085042434048}],\"siteRelationship\":[{\"id\":\"6210187069227008\",\"href\":\"gienococ\",\"type\":\"kotas\",\"role\":\"unimami\",\"validFor\":{\"startDateTime\":\"2007-03-19T08:18:51.392Z\",\"endDateTime\":\"2020-05-29T22:14:12.996Z\"}}],\"externalId\":\"2182513696964608\",\"sourceSystemId\":\"6509404100755456\",\"tags\":[\"pirucub\"],\"onSiteSubAddress\":[{\"id\":\"5270275142713344\",\"href\":\"nirzibee\",\"type\":\"luodwi\",\"name\":\"Harriet Morris\",\"subUnitType\":\"nihe\",\"subUnitNumber\":\"2434437690163200\",\"levelType\":\"ipra\",\"levelNumber\":\"7746145996505088\",\"buildingName\":\"Rebecca Morgan\",\"privateStreetNumber\":\"Niipa Terrace\",\"privateStreetName\":\"Wojce Parkway\",\"@type\":\"ihkem\",\"@baseType\":\"GeographicSubAddress\",\"@schemaLocation\":\"punoacec\"}]}},\"@type\":\"johupiur\",\"@schemaLocation\":\"abecic\",\"@baseType\":\"melupdeg\"}");
Request request = new Request.Builder()
.url("")
.patch(body)
.addHeader('SECURITY_CREDENTIALS')
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.addHeader('x-external-system' \ (for use in sandbox mode only, pass
any unique value >= 8 chars))
.build();
Response response = client.newCall(request).execute();
{
"externalId":"TESTCR-0608-02",
"attachment":[
{
"name":"test doc 1",
"mimeType":"application/text",
"content":"string"
},
{
"name":"test doc 2",
"mimeType":"application/text",
"content":"string 2"
}
],
"relatedParty":[
{
"role":"affectedcustomer",
"name":"GTDE",
"individual":{
"id":"SR367730"
}
}
],
"note":[
{
"text":"worklog test description",
"noteType":"worklog",
"clientviewable":true,
"summary":"worklog test description_longdescription",
"logtype":"ClientNote"
}
]
}
patch /patchChangeRequest/{id}
id | Bell CR ID; Identifier of the Change Request | |
Required In Query | ||
string |
Priority | The priority of the trouble ticket sent from the customer indicating how quickly the issue should be resolved | |
Optional In Body | ||
string |
relatedparty | Customer Contact Info. The related party(ies) that are associated to the ticket. | |
Optional In Body | ||
string |
Status | The current status of the change request. If Customer doesn't send this value then the API defaults it to NEW. | |
Optional In Body | ||
string |
Notes | The note(s) that are associated to the change. Additional Change Details, like worklog descriptions, communication logs, long descriptions. | |
Optional In Body | ||
string |
Attachment | File(s) attached to the change request. e.g. picture of broken device, scanning of a bill or charge | |
Optional In Body | ||
string |
External id | The Customer Change ID | |
Optional In Body | ||
string |
202 | Accepted |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not allowed |
409 | Conflict |
500 | Internal Server Error |