Admin API (Dashboard & Team) Singletons
Update a singleton entry
/admin-api/v1/sites/{siteSlug}/singletons/{slug} Creates or partially updates the singleton entry for {slug}. Requires entry:edit_all capability.
Authentication
- overtcms_access cookie
SessionCookieHttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (
POST,PATCH,PUT,DELETE) authenticated via cookie must also send a matching same-originOriginheader for CSRF protection. - Bearer token
BearerJWTHuman Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (
ocms_...) are rejected on the Admin Plane.
Path parameters
-
siteSlugstring requiredSite slug. -
slugstring requiredSingleton post type slug.
Query parameters
-
localestringLocale code.
Headers
-
If-MatchstringOptimistic locking ETag precondition. -
X-Null-SemanticsstringPassclearto let JSONnullvalues clear optional fields on PATCH (default treatsnullas unchanged).Allowed:
ignoreclearDefault ignore
-
OriginstringSame-origin header required by CSRF protection on state-changing requests authenticated viaovertcms_accesscookie. -
Idempotency-KeystringOptional unique key (max 128 chars) for atomic mutation deduplication.
Request body application/json required
-
bodyPatchesmap of array of BodyPatchMap of rich_html field key to ordered surgical BodyPatch operations. -
clearFieldsarray of string -
clearUnpublishAtboolean -
commitMessagestringExample Fix typo in heading
-
dataobject -
expectedEtagstringAlternative to expectedVersion or If-Match header. -
expectedVersionintegermin 1, Example 1
-
slugstring -
unpublishAtstring, date-time
Responses
-
200 Singleton updated.
application/json
-
changedboolean requiredFalse if the patch was a no-op (no version bump).Example true
-
entryEntry requiredContent entry with dual draft/published snapshots and optimistic locking metadata.Show 25 fields Hide
-
createdAtstring, date-time required -
createdByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
displayLabelstring requiredExample Introducing OvertCMS
-
draftDataobject required -
etagstring requiredExample sha256:9f86d081884c7d659a2feaa0c55ad015
-
idstring, uuid requiredExample 0195c0a1-7e20-7000-8000-000000000099
-
labelKeystring requiredExample introducing overtcms
-
localestring requiredExample en
-
postTypeIdstring, uuid required -
postTypeSlugstring requiredExample posts
-
publicUrlstring requiredExample https://example.com/blog/introducing-overtcms
-
publishedAtstring, date-time nullable -
publishedDataobject -
scheduledAtstring, date-time nullable -
schemaVersionAtWriteinteger requiredExample 2
-
searchKeystring requiredExample introducing overtcms
-
siteIdstring, uuid required -
slugstring requiredExample introducing-overtcms
-
statusstring requiredAllowed:
draftscheduledpublishedarchivedtrashedExample draft
-
translationGroupIdstring -
trashedAtstring, date-time nullable -
unpublishAtstring, date-time nullable -
updatedAtstring, date-time required -
updatedByActor requiredIdentifies the human user, API key, MCP client, or system process that initiated an action.Show 3 fields Hide
-
idstring requiredExample 0195c0a1-7e20-7000-8000-000000000042
-
kindstring requiredAllowed:
userapi_keymcpsystemExample api_key
-
namestring requiredExample Content Automation Bot
-
-
versioninteger requiredmin 1, Example 3
-
-
schemaWarningsarray of SchemaWarningShow 5 fields Hide
-
changesarray of DriftChangeShow 6 fields Hide
-
breakingboolean requiredExample false
-
fieldstring requiredExample summary
-
kindstring requiredExample optional_field_added
-
messagestring requiredExample new optional field "summary" added
-
newValueany -
oldValueany
-
-
codestring requiredExample schema_capability_gain
-
currentFingerprintstring required -
expectedFingerprintstring required -
messagestring required
-
-
warningsarray of HTMLWarningShow 4 fields Hide
-
attrstringExample style
-
codestring requiredExample stripped_disallowed_attr
-
messagestring requiredExample removed disallowed attribute style on <p>
-
tagstringExample p
-
-
-
401 Unauthenticated — missing or expired session cookie / JWT (API keys are rejected).
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
403 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
404 Singleton not found.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
409 Conflict — optimistic lock mismatch, uniqueness conflict, breaking change confirmation required, or strong references.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
422 Validation error with field-level issues.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-