Add a version
1 min
POST
{baseUrl}/idgen/namespaces/{name}/versions
namestring<p>The namespace name (<code>^[a-z][a-z0-9._-]{0,63}$</code>).</p>
acceptstringGenerated from available response content types
bodyobjectThe new format.
201The new DRAFT version.
400<p>INVALID_REQUEST: a malformed path or body value, or an invalid name.</p>
401<p>UNAUTHENTICATED: missing, expired or invalid credentials.</p>
403<p>FORBIDDEN: the caller lacks the <code>idgen.namespaces.write</code> permission, or its tenant or site scope does not match.</p>
404<p>NAMESPACE_NOT_FOUND: no such namespace (or it was deleted).</p>
422<p>INVALID_FORMAT (<code>message</code> lists every violation) or FORMAT_OVERLAP (<code>details.conflictingVersion</code>, <code>details.exampleId</code>).</p>
500<p>INTERNAL_ERROR: an unexpected failure. Retry once, then report it with the <code>x-request-id</code>.</p>
503<p>AUTH_UNAVAILABLE or BACKEND_UNAVAILABLE (both retryable): retry with backoff.</p>
curl --request POST \
--url http://localhost:8080/idgen/namespaces/{name}/versions \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"separator": "",
"segments": [
{
"type": ""
}
]
}'