Cyan Web API - Version 1


POST api/syncTokens

            Creates a token that can be used to retrieve sync data.
            

Request Information

Parameters

NameDescriptionAdditional information
syncTokenRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "syncTokenId": "ba7e9bd1-608d-4a31-b8df-6c5ecea646eb",
  "tenantId": "59ef61e5-5fed-40bd-bbf5-1416f876e49c",
  "userId": "386bab03-afbc-4597-b7fc-56760e2009ee",
  "userGroupId": "6cf3f8af-aa86-4adb-839d-41a4616ce741",
  "deviceId": "5fb48298-09ba-4ee6-a3b7-1f6e0de37b3c",
  "deviceGroupId": "a57fe3e6-f255-4046-8da1-84dc2c6e7813",
  "applicationId": "e690f14c-1355-47ef-9154-ab46d04f4ff9",
  "applicationVersionId": "8b48cf6e-cd82-45f1-a797-ee18b00d36f0",
  "requestedAnchorHex": "sample string 9",
  "currentDatabaseAnchorHex": "sample string 10",
  "pushToken": "sample string 11",
  "options": "sample string 12",
  "createdDateUtc": "2025-11-19T06:14:09.4159603+00:00",
  "updatedDateUtc": "2025-11-19T06:14:09.4159603+00:00"
}

application/xml, text/xml

Sample:
<SyncTokenRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <CreatedDateUtc>2025-11-19T06:14:09.4159603+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2025-11-19T06:14:09.4159603+00:00</UpdatedDateUtc>
  <ApplicationId>e690f14c-1355-47ef-9154-ab46d04f4ff9</ApplicationId>
  <ApplicationVersionId>8b48cf6e-cd82-45f1-a797-ee18b00d36f0</ApplicationVersionId>
  <CurrentDatabaseAnchorHex>sample string 10</CurrentDatabaseAnchorHex>
  <DeviceGroupId>a57fe3e6-f255-4046-8da1-84dc2c6e7813</DeviceGroupId>
  <DeviceId>5fb48298-09ba-4ee6-a3b7-1f6e0de37b3c</DeviceId>
  <Options>sample string 12</Options>
  <PushToken>sample string 11</PushToken>
  <RequestedAnchorHex>sample string 9</RequestedAnchorHex>
  <SyncTokenId>ba7e9bd1-608d-4a31-b8df-6c5ecea646eb</SyncTokenId>
  <TenantId>59ef61e5-5fed-40bd-bbf5-1416f876e49c</TenantId>
  <UserGroupId>6cf3f8af-aa86-4adb-839d-41a4616ce741</UserGroupId>
  <UserId>386bab03-afbc-4597-b7fc-56760e2009ee</UserId>
</SyncTokenRepresentation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SyncTokenRepresentation'.