ContractRoleCosts
This entity describes a per hour cost for labor that is set at the contract level. This cost overrides a resource's Admin level internal cost rate for time entries posted against the contract. Time entry dates must fall within the active dates of the contract. The cost rate is associated with a resource and a role.
NOTE You can refer to the Online Help to find root and child access URLs of the entity you wish to query. Refer to Finding resource and child access URLs of REST API entities for more information.
Entity details
Entity Name: | ContractRoleCosts |
Entity Path: |
/atservicesrest/v1.0/ContractRoleCosts |
Parent Entity: | Contracts |
Can Create: | |
Can Update: | |
Can Query: | |
Can Delete: | |
Can Have UDFs: |
Conditions and requirements
- Resources with security levels that specify limited or no contract visibility cannot create, update, or query this entity.
- roleID must reference a Role that is associated, via Department or Queue, with the Resource referenced by resourceID.
- ContractRoleCost can only be applied to time entries with a create date that falls within the start and end dates of the Contract referenced by contractID.
Field definitions
The following table describes the standard Autotask fields for this entity. Refer to the following articles for more information about working with these fields:
- The entityInformation REST API call
- Making basic query calls to the REST API
- Advanced query features of the REST API
To learn how to query picklist endpoints, refer to Understanding picklists.
Notes
- For string datatypes, the number in parentheses ( ) indicates the maximum number of characters allowed.
- LT indicates Local Term.
- If this entity has child collections, they will appear in a Child collection access URLs or an Entity URLs and relationships drop-down in the Entity details section of this article.
- You can call the /query/count/ endpoint of a resource to determine how many records a collection holds.
Field Name | Datatype | Read-Only | Is Required | Reference Name | Picklist |
---|---|---|---|---|---|
contractID | integer | Contracts | |||
id | long | ||||
rate | decimal | ||||
resourceID | integer | Resources | |||
roleID | integer | Roles |