PUT serviceowner/Srr/{id}
Updates a specific service right in the service rights registry.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | The id of the right to be updated. |
Define this parameter in the request URI. |
right | A object specifying the right details. |
Define this parameter in the request body. |
Request body formats
application/hal+xml
Sample:
<resource> <ServiceCode>4541</ServiceCode> <ServiceEditionCode>1</ServiceEditionCode> <Reportee>901234567</Reportee> <Right>Write</Right> <ValidTo>29.08.2019 07:56:20</ValidTo> <Condition> <HandledBy>910419218</HandledBy> <IsRecipient>True</IsRecipient> <IsSender>True</IsSender> <KeepSessionAlive>True</KeepSessionAlive> <AllowedRedirectDomain> <String>*.VG.NO</String> <String>WWW.NRK.NO</String> </AllowedRedirectDomain> </Condition> </resource>
application/hal+json
Sample:
{ "ServiceCode": "sample string 19", "ServiceEditionCode": 2, "Reportee": "24129845645/901234567", "Right": "Write", "ValidTo": "2019-04-29T07:56:20.0590584+02:00", "Condition": { "HandledBy": "901234567", "IsRecipient": true, "IsSender": true, "KeepSessionAlive": true, "AllowedRedirectDomain": [ "*.vg.no", "www.nrk.no" ] } }
Response Information
The updated object.
Response body formats
application/hal+xml
Sample:
Sample not available.
application/hal+json
Sample:
{ "Id": 1, "ServiceCode": "sample string 63", "ServiceEditionCode": 2, "Reportee": "sample string 63", "Right": "sample string 75", "ValidTo": "2024-11-29T20:21:44.4257407+01:00", "Condition": { "HandledBy": "sample string 54", "IsRecipient": true, "IsSender": true, "KeepSessionAlive": true, "AllowedRedirectDomain": [ "sample string 47", "sample string 89", "sample string 40" ] }, "OperationStatus": "sample string 35" }