POST: Save Existing Entity

Replace the contents of the given documents with new data. See Save in the Language Spec for details of the document posted.

Request

Body of request is a JSON document matching the request JSON schema.

Save data for given entity and specific version.

POST /data/save/{entityName}/{version}
{request JSON document}

Save data for given entity using default version.

POST /data/save/{entityName}
{request JSON document}

Response: Success

On success returns a response JSON document.

Response: Errors

  • crud:NoAccess - caller doesn't have access required to save the document
  • crud:insert:NoFieldAccess - caller doesn't have acces required to save a field
  • mongo-crud:Duplicate - document already exists
  • mongo-crud:SaveError - general error, unable to save document

results matching ""

    No results matching ""