POSThttps://notifications.citrixworkspacesapi.net/acme/notifications/itemsHTTP/1.1Accept:application/jsonContent-Type:application/jsonAuthorization:CwsAuthbearer=<token-from-call-to-trust>{"destinationAdmin":"*","component":"Citrix Cloud","createdDate":"2018-04-22T21:11:25.006Z","eventId":"768e5756-08bf-47ce-9566-e286887ba734","severity":"Information","priority":"Normal","content":[{"languageTag":"en-US","title":"This is a title","description":"This is a description"}]}

Note

Replace acme above with the ID of the customer in which to raise the notification.

Replace createdDate above with the current time in RFC 3339 format.

Replace eventId above with a GUID, uniquely generated for each notification that you wish to raise.

HTTP/1.1200OKCache-Control:no-cacheContent-Length:2623Content-Type:application/json;charset=utf-8Date:Fri,23Dec201621:53:37GMTX-Cws-TransactionId:6c3db4d6-125f-4ea3-b938-882bc5dc3caf{"destinationAdmin":"*","component":"Citrix Cloud","createdDate":"2018-04-22T21:11:25.006Z","categories":null,"severity":"Information","eventId":"768e5756-08bf-47ce-9566-e286887ba734","priority":"Normal","content":[{"languageTag":"en-US","title":"This is a title","description":"This is a description","detailUri":null}],"data":null,"externalId":null}

The star (*) in the destination administrators field indicates the notification will be
sent to all administrators on the account. Make sure the eventId field is set to a
unique GUID for each notification that you wish to raise.

publicstaticasyncTask<string>SendNotification(stringbearerToken,stringcustomer,stringtitle,stringdescription){varclient=newHttpClient();client.DefaultRequestHeaders.Accept.ParseAdd("application/json");client.DefaultRequestHeaders.Authorization=newAuthenticationHeaderValue("CwsAuth","Bearer="+bearerToken);varpayload=JsonConvert.SerializeObject(new{destinationAdmin="*",component="Citrix Cloud",createdDate=XmlConvert.ToString(DateTime.UtcNow,XmlDateTimeSerializationMode.Utc),eventId=Guid.NewGuid().ToString(),severity="Information",priority="Normal",content=new[]{new{languageTag="en-US",title=title,description=description,}},});varresponse=awaitclient.PostAsync("https://notifications.citrixworkspacesapi.net/"+customer+"/notifications/items",newStringContent(payload,Encoding.UTF8,"application/json"));response.EnsureSuccessStatusCode();varcontent=awaitresponse.Content.ReadAsStringAsync();// Parsing the JSON content is left as an exercise to the reader.// Consult Json.NET documentation on newtonsoft.com for more information.returncontent;}