nexrender-action-sanity-patch
v1.0.0
Published
Modifies Sanity documents
Downloads
2
Readme
nexrender-action-sanity-patch
Modify data in a Sanity document
Install
npm install nexrender-sanity-upload
How to use
- Add this module to
postrender
- Choose the file to upload
- In params provide Sanity connection information
- Provide Sanity document & field information
- Currently only works on String fields
{
"template": {
"src": "https://example.com/templates/ae-template-to-use.aep",
"composition": "my_composition"
},
"assets": [],
"actions": {
"postrender": [
{
"module": "nexrender-sanity-patch",
"params": {
"projectId": "Sanity project ID",
"dataset": "dataset name, usually production",
"apiVersion": "api version (see Sanity docs)",
"token": "your API token",
"useCdn": "true or false"
},
"document": "ID of document to put the asset",
"fieldName": "name of field where the data goes",
"value": "string value to send",
}
]
}
}