Save
Save an entity.
Endpoint
POST https://yourdomain.com/{context}/index.cfm/_api/json/v1/{siteid}/{entityname}/?csrf_token={csrf_token}&csrf_token_expires={csrf_token_expires}
OR
POST https://yourdomain.com/{context}/index.cfm/_api/json/v1/?method=save&siteid={siteid}&entityname={entityname}&csrf_token={csrf_token}&csrf_token_expires={csrf_token_expires}
Request & Query Parameters
| Path parameter | Value | 
|---|---|
| context | The path to where Mura CMS resides within the webroot (typically, an empty string). | 
| siteid | The SiteID of where the entity will be stored. | 
| entityname | The entity's name. | 
| csrf_token | The csrf_tokenis generated by the generateCSRFTokens method. | 
| csrf_token_expires | The csrf_token_expiresis generated by the generateCSRFTokens method. | 
Example Response
The data object will contain the entity's keys and corresponding values.
{
"data": {
"id": "2C91A3B0-E375-9383-0B05636E6926868D",
"name": "Example",
"links": {
"relatedentitylink1": "http://...",
"relatedentitylink2": "http://..."
}
}
}
History
Added in version 6.2