Data Products

Set Data Product Status

Sets the status of a data product. Only accessible to the provider who owns the data product. Admins on the other hand can set the state to any data product. Only specific transitions are allowed.

put/api/products/v2/{id}/status

Path parameters

idstring uuid required

Query parameters

actingRole'PROVIDER' | 'ADMIN'

Selects the role in which the authenticated user acts for this request. Optional: if the authenticated user holds exactly one of the allowed roles, the value is auto-resolved. Returns 400 if the value is unknown, not allowed for this endpoint, or omitted while the user holds multiple matching roles. Returns 403 if the user does not hold the role specified in the parameter.

Request body

'DRAFT' | 'ACTIVE' required

Response

OK

idstring uuid required
dataSourceSystemCodestring

Code of data source system from which this product originates

restClientPathTemplatestring

Template for the path where the data product is fetched from

restClientRequestTemplatestring

Template of the request body for fetching the data product

restClientMethodCode'POST' | 'GET'
flowCode'UID_BASED_PRE_VALIDATION' | 'UID_BASED_POST_VALIDATION' | 'BUR_BASED_PRE_VALIDATION' | 'BUR_BASED_POST_VALIDATION' | 'UNBOUND_UID_BASED_POST_VALIDATION' | 'UNBOUND_BUR_BASED_POST_VALIDATION'
deprecatedSincestring date-time
restClientChangeDetectionPathTemplatestring

Template for the path for retrieving updates to the data product

consentRequiredboolean required

If a consent is required for this data product

Example response

{
  "dataSourceSystemCode": "AGIS",
  "dataSourceSystem": {
    "code": "AGIS",
    "dataProvider": {
      "code": "BLW",
      "uid": "CHE123456789"
    }
  },
  "restClient": {
    "code": "AGIS_API",
    "displayName": "Agis",
    "url": "http://example.com/agis"
  },
  "deprecatedSince": "2022-03-10T12:15:50",
  "restClientChangeDetectionPathTemplate": "v1/animal-updates/{{uid}}?since={{LAST_CHANGED_SINCE}}",
  "consentRequired": true
}

Changes

Changed in 10 of the 56 revisions of this API.815

    • added the required property consentRequired to the response with the 200 status

      response-required-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 52c1637abca022See the full diff
    • added the new UNBOUND_BUR_BASED_POST_VALIDATION enum value to the flowCode response property for the response status 200

      response-property-enum-value-added

    • added the new UNBOUND_UID_BASED_POST_VALIDATION enum value to the flowCode response property for the response status 200

      response-property-enum-value-added

    • removed the UNBOUND_POST_VALIDATION enum value from the flowCode response property for the response status 200

      response-property-enum-value-removed

    • added the required property dataSourceSystem/legalBasis to the response with the 200 status

      response-required-property-added

  • bf09fcfe746c11See the full diff
    • removed the optional property technicalDescription from the response with the 200 status

      response-optional-property-removed

    • added the optional property extendedDescription to the response with the 200 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the optional property extendedDescription from the response with the 200 status

      response-optional-property-removed

    • added the optional property technicalDescription to the response with the 200 status

      response-optional-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the optional property technicalDescription from the response with the 200 status

      response-optional-property-removed

    • added the optional property extendedDescription to the response with the 200 status

      response-optional-property-added

    • added the optional property restClient/displayName to the response with the 200 status

      response-optional-property-added

    • added the optional property links to the response with the 200 status

      response-optional-property-added

    • added the optional property technicalDescription to the response with the 200 status

      response-optional-property-added

    • removed the optional property links from the response with the 200 status

      response-optional-property-removed

    • removed the optional property restClient/displayName from the response with the 200 status

      response-optional-property-removed

    • removed the optional property technicalDescription from the response with the 200 status

      response-optional-property-removed

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property links to the response with the 200 status

      response-optional-property-added

    • added the optional property restClient/displayName to the response with the 200 status

      response-optional-property-added

    • added the optional property restClient/url to the response with the 200 status

      response-optional-property-added

    • added the optional property technicalDescription to the response with the 200 status

      response-optional-property-added

    • added the optional property restClientChangeDetectionPathTemplate to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added