Valuekeep Developers - Web API Reference

GET Operations

GET AssetRestrictions (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See AssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /settings/assetRestrictions/extension/odata

GET AssetRestriction by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See AssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /settings/assetRestrictions/{id}/extension

GET AssetRestriction by key

Returns the entity record that matches the specified key.

The following elements are required:

workshopKey (string) Workshop.

Response:

When successful, the response body contains the entity record. See AssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /settings/assetRestrictions/{workshopKey}/extension

GET AssetRestrictions (with Workshop)

Returns the list of all the entity records available. Each record contains both data from the entity and the base entity.

Response:

When successful, the response body contains the list of records available. See BaseAssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /settings/assetRestrictions

GET AssetRestrictions (with Workshop) (paged)

Returns a page of the list of all the entity records available. Each record contains both data from the entity and the base entity.

The following elements are optional:

page (int) The index of the page of the list that should be returned. This is a query string parameter.
pageSize (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter.

Response:

When successful, the response body contains the list of records available. See BaseAssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /settings/assetRestrictions?page={page}&pageSize={pageSize}

GET AssetRestriction (with Workshop) by identifier

Returns the entity record that matches the specified identifier. The record contains both data from the entity and the base entity.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See BaseAssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /settings/assetRestrictions/{id}

GET AssetRestriction (with Workshop) by key

Returns the entity record that matches the specified key. The record contains both data from the entity and the base entity.

The following elements are required:

workshopKey (string) Workshop.

Response:

When successful, the response body contains the entity record. See BaseAssetRestrictionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /settings/assetRestrictions/{workshopKey}

POST Operations

POST AssetRestrictions

Creates a new entity record.

The following elements are required:

assetRestrictionResource (ApiAssetRestrictionResource) The request body should contain the entity record that should be created.
See ApiAssetRestrictionResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiAssetRestrictionResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /settings/assetRestrictions/extension

POST AssetRestrictions (with ApiBaseAssetRestriction)

Creates a new entity record. The record shoud contain both data from the entity and the base entity.

The following elements are required:

assetRestrictionResource (ApiAssetRestrictionResource) The request body should contain the entity record that should be created.
See ApiAssetRestrictionResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiBaseAssetRestrictionResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /settings/assetRestrictions

POST Asset Restriction Group

Inserts a new 'Asset Restriction Group' in the 'Asset Restriction'.

The following elements are required:

workshopKey (string) Workshop.
value (ApiAssetRestrictionAssetRestrictionGroupsResource) The ApiAssetRestrictionAssetRestrictionGroupsResource instance.
See ApiAssetRestrictionAssetRestrictionGroupsResource.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /settings/assetRestrictions/{workshopKey}/assetRestrictionGroups

PUT Operations

PUT Set AssetGroup AssetRestrictionGroup

Updates the value of attribute 'AssetGroup' in the specified entity record.

The following elements are required:

workshopKey (string) Workshop.
lineId (string) The detail identifier.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /settings/assetRestrictions/{workshopKey}/assetRestrictionGroups/{lineId}/assetGroup

PUT Set IsActive AssetRestriction

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

workshopKey (string) Workshop.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /settings/assetRestrictions/{workshopKey}/isActive

DELETE Operations

DELETE Asset Restriction Group by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

workshopKey (string) Workshop.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /settings/assetRestrictions/{workshopKey}/assetRestrictionGroups/{lineId}

DELETE AssetRestriction by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /settings/assetRestrictions/{id}

DELETE AssetRestriction by key

Deletes the entity record that matches the specified key.

The following elements are required:

workshopKey (string) Workshop.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /settings/assetRestrictions/{workshopKey}

Resources


ApiAssetRestrictionAssetRestrictionGroupsResource

The following elements are required:

assetGroup (string) Asset Group.


ApiAssetRestrictionResource

The following elements are required:

workshopKey (string) Workshop.

The following elements are optional:

assetRestrictionGroups (List of ApiAssetRestrictionAssetRestrictionGroupsResource) Asset Restriction Groups.
See ApiAssetRestrictionAssetRestrictionGroupsResource.


ApiBaseAssetRestrictionAssetRestrictionGroupsResource

The following elements are required:

assetGroup (string) Asset Group.


ApiBaseAssetRestrictionResource

The following elements are required:

workshopKey (string) Workshop.
description (string) Description.

The following elements are optional:

assetRestrictionGroups (List of ApiBaseAssetRestrictionAssetRestrictionGroupsResource) Asset Restriction Groups.
See ApiBaseAssetRestrictionAssetRestrictionGroupsResource.
isInternal (bool) Is Internal.
isDefault (bool) Is Default.
remarks (string) Remarks.


AssetRestrictionResource

The following elements are required:

workshopKey (string) Workshop.

The following elements are optional:

assetRestrictionGroups (List of AssetRestrictionGroupResource) Asset Restriction Groups.
See AssetRestrictionGroupResource.


BaseAssetRestrictionAssetRestrictionGroupsResource

The following elements are required:

assetGroup (string) Asset Group.


BaseAssetRestrictionResource

The following elements are required:

workshopKey (string) Workshop.
description (string) Description.

The following elements are optional:

assetRestrictionGroups (List of BaseAssetRestrictionAssetRestrictionGroupsResource) Asset Restriction Groups.
See BaseAssetRestrictionAssetRestrictionGroupsResource.
isInternal (bool) Is Internal.
isDefault (bool) Is Default.
remarks (string) Remarks.