Loading

DFS Resource Services API (latest)

Download OpenAPI specification:Download

Contains functionality related to resources.

For endpoints that support localization the language can be passed either as a query string parameter (using the name 'language') or in the 'accept-language' header.
If no language is passed to such endpoints then the default configured language will be used.

Resource

Delete resource set

Deletes a resource set.

Authorizations:
path Parameters
resourceSetName
required
string
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

delete/v1.0/resourcesets/{resourceSetName}
https://example-host/v1.0/resourcesets/{resourceSetName}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Update resource set

Updates a resource set.

Authorizations:
path Parameters
resourceSetName
required
string
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
name
string Nullable

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

put/v1.0/resourcesets/{resourceSetName}
https://example-host/v1.0/resourcesets/{resourceSetName}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "name": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Delete resource

Deletes resource by name.

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set.

resourceName
required
string

The name of the resource to delete.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

delete/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}
https://example-host/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Get resource

Gets resource by name.

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set to return.

resourceName
required
string

The name of the resource to return.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

get/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}
https://example-host/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0,
  • "resourceSetId": 0,
  • "name": "string",
  • "description": "string",
  • "values":
    [
    ]
}

Update resource

Updates a resource

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set.

resourceName
required
string

The name of the resource to modify.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
name
string Nullable
description
string Nullable
values
Array of objects (Api.Resources.ModifyResource.ResourceValue) Nullable

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

put/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}
https://example-host/v1.0/resourcesets/{resourceSetName}/resources/{resourceName}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "values":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Get resource sets

Returns a list of all resource sets in the system.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

500

Server Error

get/v1.1/resourcesets
https://example-host/v1.1/resourcesets

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "resourceSets":
    [
    ]
}

Create resource set

Creates a new resource set

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
name
string Nullable

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.1/resourcesets
https://example-host/v1.1/resourcesets

Request samples

Content type
Copy
Expand all Collapse all
{
  • "name": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

Get resource set by name.

Returns a specific resource set that matches the passed resourceSetName.

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set to return.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

get/v1.1/resourcesets/{resourceSetName}
https://example-host/v1.1/resourcesets/{resourceSetName}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 1,
  • "name": "Dashboard",
  • "values":
    [
    ]
}

Create resource

Creates a new resource.

Authorizations:
path Parameters
resourceSetName
required
string
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
name
string Nullable
description
string Nullable
values
Array of objects (Api.Resources.CreateResource.ResourceValue) Nullable

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/resourcesets/{resourceSetName}/resources
https://example-host/v1.0/resourcesets/{resourceSetName}/resources

Request samples

Content type
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "values":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

Search resource sets

Searches for resource sets and returns a list with resource sets (and key attributes) matching the passed request parameters.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
page
integer <int32>
pageSize
integer <int32>
sortBy
string Nullable
sortOrder
string (SortOrder)
Enum: "Ascending" "Descending"
ids
Array of integers <int32> Nullable
names
Array of strings Nullable
search
string Nullable

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/resourcesets/search
https://example-host/v1.0/resourcesets/search

Request samples

Content type
Copy
Expand all Collapse all
{
  • "page": 0,
  • "pageSize": 0,
  • "sortBy": "string",
  • "sortOrder": "Ascending",
  • "ids":
    [
    ],
  • "names":
    [
    ],
  • "search": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "results":
    [
    ],
  • "page": 0,
  • "pageSize": 0,
  • "pageCount": 0,
  • "totalCount": 0
}

Search resources

Searches for resources and returns a list with resources (and key attributes) matching the passed request parameters.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:
page
integer <int32>
pageSize
integer <int32>
sortBy
string Nullable
sortOrder
string (SortOrder)
Enum: "Ascending" "Descending"
ids
Array of integers <int32> Nullable
names
Array of strings Nullable
resourceSetIds
Array of integers <int32> Nullable
resourceSetNames
Array of strings Nullable
search
string Nullable

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/resourcesets/resources/search
https://example-host/v1.0/resourcesets/resources/search

Request samples

Content type
Copy
Expand all Collapse all
{
  • "page": 0,
  • "pageSize": 0,
  • "sortBy": "string",
  • "sortOrder": "Ascending",
  • "ids":
    [
    ],
  • "names":
    [
    ],
  • "resourceSetIds":
    [
    ],
  • "resourceSetNames":
    [
    ],
  • "search": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "results":
    [
    ],
  • "page": 0,
  • "pageSize": 0,
  • "pageCount": 0,
  • "totalCount": 0
}

Export resources file

Produces a CSV file containing the resources (and associated values) of a given resource set.

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/resourcesets/{resourceSetName}/resources/export-file
https://example-host/v1.0/resourcesets/{resourceSetName}/resources/export-file

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Import resources file

Imports a CSV file containing the resources (and associated values) of a given resource set.

Authorizations:
path Parameters
resourceSetName
required
string

The name of the resource set.

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema: multipart/form-data
file
string <binary>

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/resourcesets/{resourceSetName}/resources/import-file
https://example-host/v1.0/resourcesets/{resourceSetName}/resources/import-file

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}