Skip to content

List and retrieve Resources

Request

Return a filtered, paginated list of Resources

Security
bearerAuth
Query
activityRoleIdstring

An activity role id to search for resources. Filters on the resource having the activity role

businessUnitIdstring

A business unit id to search for resources.

gradeIdstring

A grade id to search for resources.

locationIdstring

A location id to search for resources.

resourceTypeIdstring

A Resource Type id to search for resources.

calendarIdstring

A Calendar id to search for resources.

startDatestring

Searches for resources starting on or after specified date

userEmailstring

Filter by the email address of the Salesforce User linked to the Resource.

includeAvailabilityboolean

Set to true to include availability data as a nested list on each Resource in the response. Availability data contains the week starting date and availability percentage. If including availability data then you MUST supply an availability date range filter using availabilityStartingLessThan and availabilityEndingGreaterThan

availabilityStartingLessThanstring

Filter availability records to those with a StartDate before this date (YYYY-MM-DD). Only used when includeAvailability is true.

availabilityEndingGreaterThanstring

Filter availability records to those with an EndDate after this date (YYYY-MM-DD). Only used when includeAvailability is true.

availabilityScoreGreaterThanstring

Filter availability records to those with a ScoringAvailabilityPct greater than this value. Only used when includeAvailability is true.

includeCapabilitiesboolean

Set to true to include ResourceCapability data as a nested list on each Resource in the response. Only applies to list requests.

minimumNumericRatingstring

Filter capability records to those with a NumericRating greater than or equal to this value. Possible values range from 0 to 5 with 5 being the highest capability rating Only used when includeCapabilities is true.

namestring

Filter: Exact match on the Resource's personal Name, not their role or job title. Accepts a comma-separated list of values.

nameLikestring

Filter: Partial match on the Resource's personal Name, not their role or job title.

sortstring

Sorting: The API field name to order the results by (eg 'Name' or 'Id').

lastIdstring

Pagination: The Salesforce ID of the last record from the previous page, used for retrieving the next page.

lastFieldValuestring

Pagination: The sorted field value of the last record from the previous page, used for retrieving the next page.

onlystring

Filter: Comma separated list of Salesforce Ids to filter by.

countOnlyboolean

If true, returns only the count of matching records instead of the record data.

lastModifiedDatestring, (date-time)

Filter: Search for records modified on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

createdDatestring, (date-time)

Filter: Search for records created on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

curl -i -X GET \
  'https://sx-developer.kantata.com/services/apexrest/KSX/api/resources?activityRoleId=string&businessUnitId=string&gradeId=string&locationId=string&resourceTypeId=string&calendarId=string&startDate=string&userEmail=string&includeAvailability=true&availabilityStartingLessThan=string&availabilityEndingGreaterThan=string&availabilityScoreGreaterThan=string&includeCapabilities=true&minimumNumericRating=string&name=string&nameLike=string&sort=string&lastId=string&lastFieldValue=string&only=string&countOnly=true&lastModifiedDate=2019-08-24T14%3A15%3A22Z&createdDate=2019-08-24T14%3A15%3A22Z' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Paged list of Resources

Bodyapplication/json
pagingobject(PagedResponse)
dataArray of objects
Response
{ "paging": { "totalItems": 0, "pageSize": 0, "nextRecordsUrl": "string", "done": true, "count": 0 }, "data": [ { "CustomFields": [ { "field": "string", "value": "string" } ], "Id": "string", "Name": "string", "BusinessUnitId": "string", "BusinessUnit": "string", "SupplyBusinessUnitId": "string", "SupplyBusinessUnit": "string", "StartDate": "string", "EndDate": "string", "PrimaryRoleId": "string", "PrimaryRole": "string", "LocationId": "string", "Location": "string", "ResourceTypeId": "string", "ResourceType": "string", "GradeId": "string", "Grade": "string", "UserId": "string", "Email": "string", "HoursPerDay": "string", "StandardCost": { "Rate": "string", "UnitType": "string", "CurrencyISOCode": "string" }, "StandardRevenue": { "UnitType": "string", "Rate": "string", "CurrencyISOCode": "string" } } ] }

Search Resources, including by capability and availability

Request

Return a filtered list of Resources matched and scored against the supplied capabilities. Each result carries a capability-match score. When availability.minimumPercentage is supplied each result also carries an AvailabilityRecords array of weekly availability records (StartDate, EndDate, Percentage) covering the search window.

Security
bearerAuth
Bodyapplication/jsonrequired
ActivityRoleIdstring

An activity role id to search for resources. Filters on the resource having the activity role

CalendarIdstring

A calendar id to search for resources. Filters on the resource having the specified calendar

CapabilitiesArray of objects

Capability filter objects. Each entry requires a CapabilityTypeId (Salesforce Id, obtained from list_or_search_capability_types), plus optional matching criteria. Resources are found and scored by how well they match.

Availabilityobject

Availability filter object. Fields: FromDate (YYYY-MM-DD, required with MinimumPercentage), ToDate (YYYY-MM-DD, required with MinimumPercentage), MinimumPercentage (0-100), MatchSetting (Full: every week must meet minimum; Partial: at least one week).

BusinessUnitIdstring

A Business Unit id to search for resources. Filters on the resource having the specified Business Unit

GradeIdstring

A Grade id to search for resources. Filters on the resource having the specified Grade

LocationIdstring

A Location id to search for resources. Filters on the resource having the specified Location

ResourceTypeIdstring

A Resource Type id to search for resources. Filters on the resource having the specified Resource Type

SupplyBusinessUnitIdstring

A Supply Business Unit id to search for resources. Filters on the resource having the specified Supply Business Unit

Namestring

Find resources exact match on resource name

NameLikestring

Find resources where their name begins with the specified value

UserEmailstring

Find resources where their email address begins with the specified value

CustomFiltersArray of objects

Optional list of filters against custom fields exposed via the APIListFields field set on Resource. Each entry requires FieldPath (the field API name, Value, and Operator (Equals or Like).

{ "ActivityRoleId": "string", "CalendarId": "string", "Capabilities": [ { "CapabilityTypeId": "string", "RatingType": "string", "MinimumRating": 0, "IsMandatory": true, "MatchingRule": "string", "Weighting": 0 } ], "Availability": {}, "BusinessUnitId": "string", "GradeId": "string", "LocationId": "string", "ResourceTypeId": "string", "SupplyBusinessUnitId": "string", "Name": "string", "NameLike": "string", "UserEmail": "string", "CustomFilters": [ { "FieldPath": "string", "Value": "string", "Operator": "string" } ] }

Responses

Success

Bodyapplication/json
pagingobject(PagedResponse)
dataArray of objects
Response
{ "paging": { "totalItems": 0, "pageSize": 0, "nextRecordsUrl": "string", "done": true, "count": 0 }, "data": [ {} ] }