PUT serviceowner/Srr/{id}

Updates a specific service right in the service rights registry.

Request Information

Parameters

NameDescriptionAdditional 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 71",
  "ServiceEditionCode": 2,
  "Reportee": "sample string 93",
  "Right": "sample string 10",
  "ValidTo": "2024-04-24T16:00:50.4549689+02:00",
  "Condition": {
    "HandledBy": "sample string 32",
    "IsRecipient": true,
    "IsSender": true,
    "KeepSessionAlive": true,
    "AllowedRedirectDomain": [
      "sample string 5",
      "sample string 57",
      "sample string 32"
    ]
  },
  "OperationStatus": "sample string 12",
  "_links": {
    "self": {
      "href": "sample string 67"
    }
  }
}