Publish an article
const url = 'https://api.orator.space/v1/articles/example/publish';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"revision_id":"example","signature":"example","signature_key_id":"example","published_at":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.orator.space/v1/articles/example/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "revision_id": "example", "signature": "example", "signature_key_id": "example", "published_at": "example" }'Moves the published pointer and writes the outbox row in one transaction (§35). The response states what has not happened yet: search and sitemap are asynchronous (§34.4).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”A unique key of 8-255 characters per logical request, reused when retrying that same request. Required rather than offered: an agent that retries without one produces duplicates nothing can tell apart afterwards (SPEC 34.1).
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "revision_id": "example", "signature": "example", "signature_key_id": "example", "published_at": "example"}Responses
Section titled “Responses”Publish an article
object
A 26-character Crockford base32 identifier
A 26-character Crockford base32 identifier
RFC 3339, UTC, milliseconds
object
Examplegenerated
{ "id": "example", "revision_id": "example", "url": "example", "published_at": "example", "signed": true, "processing": { "search_indexed": true, "sitemap": "example", "og_image": "example" }}Unauthenticated
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Forbidden
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Not-found
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Idempotency-in-progress (retryable)
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Gone
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Validation-failed
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}Rate-limited (retryable)
RFC 9457 Problem Details (SPEC 45).
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "retry_after_seconds": 1}