POST serviceowner/Srr

Adds a new service right to the Service Rights Registry table.

Request Information

Parameters

NameDescriptionAdditional information
srrRights An SRRRightRequest object specifying the service and the right to be added

Define this parameter in the request body.

Request body formats

application/hal+xml

Sample:
<resource>
    <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>
    <resource>
        <ServiceCode>4541</ServiceCode>
        <ServiceEditionCode>1</ServiceEditionCode>
        <Reportee>910457667</Reportee>
        <Right>Read</Right>
        <ValidTo>29.08.2019 07:56:20</ValidTo>
    </resource>
</resource>

application/hal+json

Sample:
[
    {
        "ServiceCode": "sample string 19",
        "ServiceEditionCode": 2,
        "Reportee": "string sample",
        "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"
            ]
        }
    },
    {
        "ServiceCode": "sample string 19",
        "ServiceEditionCode": 2,
        "Reportee": "string sample",
        "Right": "Read",
        "ValidTo": "2019-04-29T07:56:20.0590584+02:00"
    }
]
           

Response Information

An SRRRightRequest with the added service right.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 28"
    }
  },
  "_embedded": {
    "sample string 98": [
      {
        "Id": 1,
        "ServiceCode": "sample string 13",
        "ServiceEditionCode": 2,
        "Reportee": "sample string 39",
        "Right": "sample string 78",
        "ValidTo": "2024-04-23T20:05:34.7455518+02:00",
        "Condition": {
          "HandledBy": "sample string 76",
          "IsRecipient": true,
          "IsSender": true,
          "KeepSessionAlive": true,
          "AllowedRedirectDomain": [
            "sample string 35",
            "sample string 21",
            "sample string 15"
          ]
        },
        "OperationStatus": "sample string 85",
        "_links": {
          "self": {
            "href": "sample string 44"
          }
        }
      },
      {
        "Id": 1,
        "ServiceCode": "sample string 13",
        "ServiceEditionCode": 2,
        "Reportee": "sample string 39",
        "Right": "sample string 78",
        "ValidTo": "2024-04-23T20:05:34.7455518+02:00",
        "Condition": {
          "HandledBy": "sample string 76",
          "IsRecipient": true,
          "IsSender": true,
          "KeepSessionAlive": true,
          "AllowedRedirectDomain": [
            "sample string 35",
            "sample string 21",
            "sample string 15"
          ]
        },
        "OperationStatus": "sample string 85",
        "_links": {
          "self": {
            "href": "sample string 44"
          }
        }
      },
      {
        "Id": 1,
        "ServiceCode": "sample string 13",
        "ServiceEditionCode": 2,
        "Reportee": "sample string 39",
        "Right": "sample string 78",
        "ValidTo": "2024-04-23T20:05:34.7455518+02:00",
        "Condition": {
          "HandledBy": "sample string 76",
          "IsRecipient": true,
          "IsSender": true,
          "KeepSessionAlive": true,
          "AllowedRedirectDomain": [
            "sample string 35",
            "sample string 21",
            "sample string 15"
          ]
        },
        "OperationStatus": "sample string 85",
        "_links": {
          "self": {
            "href": "sample string 44"
          }
        }
      }
    ]
  }
}