Sequence
The sequence resource.
Basehttps://rest.carbon.ms/sequence
GET
/sequenceList sequences
Retrieve a paginated list of sequences. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/sequence
curl --request GET \
--url 'https://rest.carbon.ms/sequence?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"table": "string",
"companyId": "xyz789",
"id": "abc123def456",
"name": "Example",
"next": 0,
"size": 0,
"step": 0,
"prefix": "string"
}
]GET
/sequenceRetrieve a sequence
Fetch a single sequence by filtering on `table`.
Query parameters
tablestringMatch on the sequence's `table`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/sequence
curl --request GET \
--url 'https://rest.carbon.ms/sequence?table=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"table": "string",
"companyId": "xyz789",
"id": "abc123def456",
"name": "Example",
"next": 0,
"size": 0,
"step": 0,
"prefix": "string"
}POST
/sequenceCreate a sequence
Create a new sequence.
Body parameters
idstringrequirednamestringrequiredprefixstringsuffixstringnextnumberrequiredsizenumberrequiredstepnumberrequiredPOSThttps://rest.carbon.ms/sequence
curl --request POST \
--url https://rest.carbon.ms/sequence \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"id":"abc123def456","name":"Example","next":0,"size":0,"step":0}'Response
{
"table": "string",
"companyId": "xyz789",
"id": "abc123def456",
"name": "Example",
"next": 0,
"size": 0,
"step": 0,
"prefix": "string"
}PATCH
/sequenceUpdate a sequence
Update an existing sequence, matched on `table`.
Body parameters
idstringrequirednamestringrequiredprefixstringsuffixstringnextnumberrequiredsizenumberrequiredstepnumberrequiredPATCHhttps://rest.carbon.ms/sequence
curl --request PATCH \
--url 'https://rest.carbon.ms/sequence?table=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"id":"abc123def456"}'Response
{
"table": "string",
"companyId": "xyz789",
"id": "abc123def456",
"name": "Example",
"next": 0,
"size": 0,
"step": 0,
"prefix": "string"
}DELETE
/sequenceDelete a sequence
Delete a sequence, matched on `table`. Returns 204 No Content.
Query parameters
tablestringThe `table` of the sequence to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/sequence
curl --request DELETE \
--url 'https://rest.carbon.ms/sequence?table=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content