Skip to navigation

Update a content item

Updates one of the creator’s content items.

Price

A patch that changes the post’s price or currency goes through action approval. The amount is the new price, in the post’s currency. When it needs a person, you get 202 APPROVAL_REQUIRED. Sending back the current price and currency unchanged is an ordinary call.

Errors

  • 403 CREATOR_SUSPENDED — the patch sets status: PUBLISHED while restrictions on the creator’s account block publishing (CONTENT_PUBLISH).
  • 503 CREATOR_STANDING_UNAVAILABLE — the creator’s account status cannot be read right now.

Required scopes: write:content.

Approval: setting or changing priceCents, currency runs through action approval.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:content

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

contentIdstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Idempotency-KeystringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

Your key for this request. It is required when the request sets or changes one of the operation’s conditionalFields: without it the request is 400 IDEMPOTENCY_KEY_REQUIRED and nothing is done. The same key re-sent with its Partner-Approval-Id is that request again; the same key for a different action is 409 IDEMPOTENCY_KEY_REUSED. See action approval.

Partner-Approval-IdstringOptionalformat: "^apr_[A-Za-z0-9]{24}$"

The approvalId a previous 202 APPROVAL_REQUIRED returned, for an operation your application may run only with approval. Re-send it with the same payload once a person has approved. A blank value is no approval.

The approval is spent once, for exactly that agency, application, creator, operation and payload digest, the same amount and currency, and at most the units it was given for. It is claimed for the request’s Idempotency-Key (required) and becomes final when the operation succeeds:

  • A refusal before the effect, a 4xx or 429, hands it back for your next attempt.
  • A 5xx, 503 included, keeps it claimed for this key, because the effect may have happened. It is handed back only when EVVA knows nothing was done.
  • The same key re-sent replays the request and never has a second effect. You get the stored result where the operation keeps one, otherwise 409 APPROVAL_CONSUMED with details.replay: true: read the resource to see the result.
  • Another key is 409 APPROVAL_CONSUMED.

When the approval cannot be used, the request is refused with 403 (APPROVAL_INVALID, APPROVAL_MISMATCH or APPROVAL_DECLINED) or 409 (APPROVAL_PENDING, APPROVAL_EXPIRED or APPROVAL_CONSUMED). See action approval.

Request

This endpoint expects an object.
titlestringOptional1-120 characters
teaserstring or nullOptional<=280 characters
bodystring or nullOptional<=10000 characters
priceCentsintegerOptional0-1000000
currencyenumOptional
Allowed values:
statusenumOptional
Allowed values:
maturityenumOptional

The studio rule: null withdraws the declaration.

Allowed values:
audienceenumOptional
Omitted on create is derived from the price.
Allowed values:
tagslist of stringsOptional

Canonicalised by the content domain; an unstorable word is a 400.

Response

Updated.
itemobject

Errors

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