Get a List of Resources
The different resources created by the customer may be retrieved to help with resource synchronisation between different systems and allow the resource Ids to be used when creating new jobs.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | Resources | Required |
ResGrp | Int | Resource group Id. Returns resources in the specified resource group. | Optional |
ReturnCustomFields | Bool | Include custom fields in the response. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Object | See 'Response' example tab |
2 | There are no resources in JobWatch | No data returned or set-up in BigChange |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=resources
Response Data
{ "Code": 0, "Result": [ { "label": "Alex Johnson", "id": 108103, "Reference": "X7K2R8QZ0D", "ResourceGroupId": 922, "Resource4Schedule": 1 }, { "label": "Emily Davis", "id": 63880, "Reference": "M9H6V3W5XZ", "ResourceGroupId": 6134, "Resource4Schedule": 1 }, { "label": "Michael Smith", "id": 133517, "Reference": "R5Y1T8K2LQ", "ResourceGroupId": 9399, "Resource4Schedule": 0 }, { "label": "Olivia Brown", "id": 112143, "Reference": "N8F4B2V6WJ", "ResourceGroupId": 922, "Resource4Schedule": 0 }, { "label": "James Wilson", "id": 63632, "Reference": "P7Q9X0K3RT", "ResourceGroupId": 3508, "Resource4Schedule": 1 } ] }