Enqueue logo audit job

View as Markdown
Starts an async job to audit logos and optionally delete rejected ones.

Authentication

AuthorizationBearer

User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key

OR
X-API-Keystring

Admin API key for system-to-system write operations

Query parameters

dryRunbooleanOptional

When true (default) rejected logos are reported but not deleted. Set false to apply deleteMode.

deleteModeenumOptional

Deletion behavior applied to rejected logos when dryRun=false.

Allowed values:
rejectMonogrambooleanOptional

When true, monogram/placeholder logos are treated as rejections.

targetDomainenumOptional
Media domain to audit. Defaults to ENTITY.
Allowed values:
targetIdlist of stringsOptional

Optional target ids (entity/person/news uuids) limiting the audit scope; repeat the parameter for multiple ids.

sourceTypeenumRequired
Write provenance source type.
sourceDetailstringRequired
Source detail or reviewer reference for the write.
sourceProviderstringOptional

Provider name for provider-native IDs or slugs.

sourceProviderIdstringOptional

Provider-native source ID.

sourceProviderSlugstringOptional

Provider-native source slug.

actorTypeenumOptional

Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.

Allowed values:
agentChassisstringOptional

Agent chassis token for agent-authored writes.

agentModelstringOptional

Agent model id for agent-authored writes.

Response

OK
jobIdstringformat: "uuid"

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
406
Not Acceptable Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error