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 68",
  "ServiceEditionCode": 2,
  "Reportee": "sample string 91",
  "Right": "sample string 43",
  "ValidTo": "2024-06-12T09:57:51.4004385+02:00",
  "Condition": {
    "HandledBy": "sample string 75",
    "IsRecipient": true,
    "IsSender": true,
    "KeepSessionAlive": true,
    "AllowedRedirectDomain": [
      "sample string 34",
      "sample string 36",
      "sample string 89"
    ]
  },
  "OperationStatus": "sample string 92",
  "_links": {
    "self": {
      "href": "sample string 42"
    }
  }
}