POST api/Policy/api/Policy/ChangeConsent

Request Information

URI Parameters

None.

Body Parameters

UpdateConsentRequest
NameDescriptionTypeAdditional information
PolicyId

integer

Matching regular expression pattern: \d+

HasConsent

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PolicyId": 1,
  "HasConsent": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateConsentRequest'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true