Skip to main content

See the value a sequential reference field takes next.

GET/api/v1/custom-fields/{custom_field_id}/next-sequential-referencecustom_fields:read

Needs View Sequential Counters, as the Portal's preview does. What the Portal's form shows before a row is added: the highest value stored in the field's column plus one, formatted by the field's sequence template. Nothing is reserved or changed, so a row added meanwhile may take the value. 404 for a field that is not a sequential reference.

Scopecustom_fields:read
AsynchronousNo
MCP toolget_custom_field_next_sequential_reference
Portal permissionsview_sequential_counters

Parameters​

NameInTypeRequiredDescription
custom_field_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json NextSequentialReference
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

NextSequentialReference​

FieldTypeRequiredDescription
custom_field_idstringRequired
sequence_templatestringRequiredThe format the value follows: a prefix, a $SEQ<n>$ counter and a suffix.
valuestringRequiredThe value a row added now takes: the highest stored value plus one, formatted by the field's sequence_template. Nothing is reserved.