Cyan Web API - Version 1


GET api/newId?{dbSequenceName?}

            Gets a new id value.
            

Request Information

Parameters

NameDescriptionAdditional information
dbSequenceName
OPTIONAL -- The sequence object name in the database. If none is specified then "NewId" will be used.
                Example: If the sequence db object is created with the statement CREATE SEQUENCE TransId; then "TransId" can be passed.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "newId": 1
}

application/xml, text/xml

Sample:
<NewIdRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <NewId>1</NewId>
</NewIdRepresentation>