Set the custom fields of a post
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
postIdstring
path
required
Request body
application/json
valuesobject
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