Skip to main content

Cookie control banner

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.
Browse Documentation
HTTP - Management

Update an entry

Created by Contensis product team, last modified by zengenti on 22 Sep 2020

Updates an entry resource.

PUT/api/management/projects/{projectId}/entries/{entryId}

Parameters

NameParameter typeTypeFormatDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
entryIdquerystringuuidThe entry identifier as a 128 bit GUIDtrue

Example

JSON
PUT: /api/management/projects/movieDb/entries/71f73a9b-2a13-4d63-bcc1-e8ee5047b01c { "title": "Back to the future", "tagline": "He's the only kid ever to get into trouble before he was born.", "overview": "Marty McFly, a typical American teenager of the Eighties, is accidentally sent back to 1955 in a plutonium-powered DeLorean \"time machine\" invented by slightly mad scientist. During his often hysterical, always amazing trip back in time, Marty must make certain his teenage parents-to-be meet and fall in love - so he can get back to the future.", "trailer": "https://www.youtube.com/watch?v=qvsgGtivCgs", "releaseDate": "1985-07-02T23:00:00Z", "actors": [ { "sys": { "id": "a1c983d6-4aaf-4456-9f3d-a6eac3139f1c", "language": "en-GB", "dataFormat": "entry" } }, { "sys": { "id": "16f6f2de-e901-4bda-bf3f-092b93ae62a9", "language": "en-GB", "dataFormat": "entry" } }, { "sys": { "id": "09b87c0b-67b2-4028-9358-e29ff16f11da", "language": "en-GB", "dataFormat": "entry" } } ], "sys": { "id": "71f73a9b-2a13-4d63-bcc1-e8ee5047b01c", "contentTypeId": "movie", "projectId": "movieDb", "language": "en-GB", "dataFormat": "entry", "version": { "versionNo": "1.0" } } }

Remarks

Contensis uses an optimistic concurrency versioning model. Rather than checking out entries and locking them we allow concurrent updating of entries. At the point in which you update an entry the version you pass in is checked to make sure it is the latest and no one else has created a newer version. If the version you pass in is the latest version then the entry will get updated. If you pass in a version which isn't now the latest then you will get a validation error (422) response.

Responses

HTTP status codeReasonModel
200SuccessEntry
401UnauthorizedError
404Project not foundError
422Validation errorError
500Internal server errorError