Update Page Fields
Add Page Field
POST http://localhost:8090/rest/pagefields/1.0/utility/add/field
Required Schema Fields:
pageId (Number) - Confluence Page ID
fieldName (String)
fieldValue (String)
history (Boolean) - Optional
Response: [Status: 200]
$ curl -u user -XPOST -H "Content-Type: application/json" --data '{"pageId":342345, \
"fieldName":"customer.name", "fieldValue":"ILA eSolution"}' \
http://localhost:8090/rest/pagefields/1.0/utility/add/field
Enter host password for user 'user':
{"field":10,"message":"[Info] Added New Page Field ID #10"}
$
Update Page Field
POST http://localhost:8090/rest/pagefields/1.0/utility/update/field
Required Schema Fields:
pageId (Number) - Confluence Page ID
fieldName (String)
fieldValue (String)
history (Boolean) - Optional
Response: [Status: 200]
$ curl -u user -XPOST -H "Content-Type: application/json" --data '{"pageId":342345, \
"fieldName":"customer.name", "fieldValue":"ILA"}' http://localhost:8090/rest/pagefields/1.0/utility/update/field
Enter host password for user 'user':
{"field":10,"message":"[Info] Updated Page Field ID #10"}
$
Update creates field if not exists.
For more REST APIs go to, Page Fields REST API