Skip to content

Authority REST API - Type Controller

The type/bycode URL provides bulk management of Asset Types by code.

GET /type/bycode

Retrieves the listed Asset Types.

ParameterExpectedDescription
codeOptionalAn Asset Type code. Can be specified multiple times to retrieve additional Asset Types.
CodeStatusDescription
200SuccessContent is an array of AssetType objects.
Asset Type codes that do not match will be omitted.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.

POST /type/bycode

Retrieves the listed Asset Types.

This is an alternative endpoint for providing more codes than the maximum URL length permits.

A JSON string array, listing Asset Type codes to retrieve.

CodeStatusDescription
200SuccessContent is an array of AssetType objects.
Asset Type codes that do not match will be omitted.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.

DELETE /type/bycode

Deletes the listed Asset Types.

A JSON array of strings, listing the Asset Type codes to delete.

CodeStatusDescription
204SuccessCompleted successfully.
Asset Type codes that do not match will be ignored.
409FailureThe operation would cause a conflict.
Content is a JSON array of one or more error codes describing the problem.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.