Set the custom fields of a post

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-postrules-setvalues"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/9df73b1c-0bc3-4f3e-8151-9eb31d90f824/social-card.svg?v=3e7ae33eec8b" alt="Set the custom fields of a post" width="600" height="315"></a>
PUT http://localhost:4000/api/v1/posts/{postId}/fields

values maps a field id (GET /posts/rules) to its value; null or an empty string clears it. Fields not named keep what they hold. A select field takes one of its options.

Parameters

postId
string
path
required

Request body

application/json
values
object
required
{
  "values": {}
}

Code samples

cURL
curl -X PUT "http://localhost:4000/api/v1/posts/{postId}/fields" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"values":{}}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
Updated