Consumers
Entity - Consumers - Handles Consumers within the system
Verb | Request | Notes | Permissions requires | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | /Consumer/Consumers | This endpoint can be used to retrieve all consumers in the system. This will return a collection of objects, each of which will have following fields:
| Requires 'Read' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
GET | /Consumer/Consumers/Id/{Id} | This endpoint can be used to retrieve a single consumer by its Id. Return object as above | Requires 'Read' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
GET | /Consumer/Consumers/Name/{Name} | This endpoint can be used to retrieve a single consumer by its Name (string must be Base64 encoded). Return object as above | Requires 'Read' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
POST | /Consumer/Consumers/Search | Minimum API version 4.0 Returns consumers that fulfil parameters passed in the request body:
Allowed filter columns:
Allowed sort columns:
| Requires 'Read' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
POST | /Consumer/Consumers | This endpoint can be used to add a new Consumer to the system. Post body:
| Requires 'Write' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
PUT | /Consumer/Consumers | This endpoint can be used to modify an existing Consumer within the system. Put body:
| Requires 'Write' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
DELETE | /Consumer/Consumers/{Id} | Deletes the consumer. Preconditions: The Consumer cannot be in use by an Instruction or a Scheduled Instruction. System Consumers cannot be deleted. | Requires 'Write' permission on 'Consumer' | ||||||||||||||||||||||||||||||||||||
DELETE | /Consumer/Consumers | Minimum API version 4.0 Deletes multiple consumers. System consumers cannot be deleted. Consumers with scheduled instructions cannot be deleted. Body of the request should contain an array of Consumer Ids. | Requires 'Write' permission on 'Consumer' |