Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

Update Record In Service Extension

Image:ApiRef2.png PUT /services/${service_id}/extensions/${ext_name}/by/unique
Available since: 8.0.200.00

Description

Updates the content of a single record in a multi-valued extension. The attributes which are part of the 'unique' list specified at the Extension Schema creation are passed in the body and are used to find the correct record to update. Image:Important.png This update cannot change the values of the attributes which are part of the 'unique' list specified at the Extension Schema creation. 'Unique' attributes identify which record should be updated.

Operation

Prerequisites: The extension record exists.
ID CV.WS.SRV.19
Method PUT
URL /services/${service_id}/extensions/${ext_name}/by/unique
Parameter   Type   Mandatory Description
URI Parameters
${service_id} string yes The service ID.
${ext_name} string yes The name of the Service Extension to update.
Body<ref>Record attributes for the Service Extension.</ref>
<attribute n>
  • string
  • integer
  • long
  • double
  • date
  • datetime
  • currency
  • boolean
yes Individual attributes defined in the Service Extension Schema.
<attribute n> corresponds to the attribute name defined in the schema.
  • If the attribute is unique, its value is used to select the record to update. It is not updated.
  • If the attribute is not unique, its value is updated.

<references />

Response

The Context Management Service API answers with HTTP codes for every request. The following table shows the correct response for a successful request. See HTTP Response Codes and Errors for further details on the possible codes that this operation can return.

Response
HTTP code 204
HTTP message No Content

Example

Operation The following operation updates the "3 times payment GOLD" record of the extension relatedOffers in the service 8389.

PUT /services/8389/extensions/relatedOffers/by/unique
{
   "offer_name":"3 times payment GOLD",
   "type":4,
   "comments":"extented offer time"
}

Result

204 No Content
This page was last edited on November 23, 2017, at 16:00.

Feedback

Comment on this article:

blog comments powered by Disqus