Returns resources specified by the assigned code value.
get
/primeapi/restapi/v16.2/resource/codeType/{typeId}/codeValue/{code}
Request
Path Parameters
- code
-
Type:
stringRequired:true- typeId
Type:integer(int64)Required:true
Response
Supported Media Types
- application/json
200 Response
successful operation
Body
Root Schema : ApiEntityResource
Type:
object- addressLine1
-
Type:
stringThe first line of the address of a location. This might be the building number and street address. - addressLine2
-
Type:
stringThe second line of the address of a location. This might be a neighborhood or town. - applicationUserId
-
Type:
integer(int64)The name of the user in the application that is also resource. - calendar
-
Type:
integer(int64)The calendar assigned to the resource or role. - calendarName
-
Type:
stringThe name of the calendar. - cityName
-
Type:
stringThe city name for a location. - codeValuesResource
-
Type:
arraycodeValuesResourceUnique Items Required:trueLists all resource code types assigned to the resource with its corresponding value. - costQuantityType
-
Type:
stringAllowed Values:[ "HOUR", "DAY", "WEEK", "MONTH", "YEAR" ] - countryCode
-
Type:
stringThe country for a location. - defaultSyncUnitsFromCost
-
Type:
booleanDefault Value:false - defaultUnitsPerHour
-
Type:
objectUnit - description
-
Type:
stringAdditional information for the resource or the role. - emailAddress
-
Type:
stringThe email address for the resource. - employeeNumber
-
Type:
stringThe resource identifier within the organization, typically the employee number or social security number. - latitude
-
Type:
number(double)The geographical coordinate for the latitude of the location. The default format for latitude is decimal degrees format, but the format you need to use will depend on your geolocation service. - locationName
-
Type:
stringThe geographical location of the resource. - longitude
-
Type:
number(double)The geographical coordinate for the longitude of the location. The default format for longitude is decimal degrees format, but the format you need to use will depend on your geolocation service. - officePhoneNumber
-
Type:
stringThe office phone number for the resource. - otherPhoneNumber
-
Type:
stringThe alternate phone numbers for the resource. - overtimeFactor
-
Type:
number(double) - parent
-
Type:
integer(int64) - parentResourceCode
-
Type:
string - postalCode
-
Type:
stringThe postal code, post code, or zip code of a location. - resourceClass
-
Type:
stringAllowed Values:[ "RESOURCE", "ROLE" ]The resource type. Valid values are: Labor: Indicates that the selected resource performs labor, measured in units of time. Nonlabor: Indicates that the selected resource does not perform labor, measured in units of time. Equipment is a nonlabor resource. Material: Indicates that the resource has a unit of measure other than time. You can select a unit of measure for the material resource. - resourceCode
-
Type:
stringThe unique identifier for the resource or role. - resourceId
-
Type:
integer(int64) - resourceManagerId
-
Type:
integer(int64)The person designated as the manager for the resource. - resourceName
-
Type:
stringThe name of the resource or role. - resourceRoleId
-
Type:
integer(int64)The identifier for the role assigned to the resource. - resourceStatus
-
Type:
stringAllowed Values:[ "ACTIVE", "INACTIVE" ]Determines whether the resource or role is currently active. Non-active resources might have left the organization, but are not deleted from the system since they might have been assigned an activity in the past or have incurred actual hours. - resourceTitleName
-
Type:
stringThe job title for the resource. For example, a resource may have the title Senior Engineer. - resourceType
-
Type:
stringAllowed Values:[ "LABOR", "NONLABOR", "MATERIAL" ]The resource type. Valid values are: Labor: Indicates that the selected resource performs labor, measured in units of time. Nonlabor: Indicates that the selected resource does not perform labor, measured in units of time. Equipment is a nonlabor resource. Material: Indicates that the resource has a unit of measure other than time. You can select a unit of measure for the material resource. - stateCode
-
Type:
stringA unique identifier for the state or province. - stateName
-
Type:
stringThe state, region, or province of a location. - unitOfMeasure
-
Type:
integer(int64)The unit of measure used for the material resource. - workspace
-
Type:
integer(int64)The name of the workspace where the resource or role was created. - workspaceName
-
Type:
stringThe name of the workspace.
Nested Schema : codeValuesResource
Type:
arrayUnique Items Required:
trueLists all resource code types assigned to the resource with its corresponding value.
-
Type:
objectApiEntityCodeValueResource
Nested Schema : Unit
Type:
objectNested Schema : ApiEntityCodeValueResource
Type:
object- codeType
-
Type:
objectApiEntityCodeType - codeValue
-
Type:
objectApiEntityCodeValue - codeValueResourceId
-
Type:
integer(int64)The unique identifier for the code value assigned to the resource.
Nested Schema : ApiEntityCodeType
Type:
object- assignments
-
Type:
arrayassignmentsUnique Items Required:true - codeTypeCode
-
Type:
stringAllowed Values:[ "Length[1-40]" ]This field displays the name of a code or value. - codeTypeId
-
Type:
integer(int64) - codeTypeName
-
Type:
stringAllowed Values:[ "Length[1-40]" ]STRING - workspace
-
Type:
integer(int64)The ID of the owning workspace.
Nested Schema : ApiEntityCodeValue
Type:
object- codeTypeId
-
Type:
integer(int64)The ID for the code type. - codeValueCode
-
Type:
stringAllowed Values:[ "LENGTH[1-32]" ]The unique identifier for the code value. - codeValueId
-
Type:
integer(int64)The unique identifier for the code value. - codeValueName
-
Type:
stringAllowed Values:[ "LENGTH[1-100]" ]The name of the code value. - parentCodeValue
-
Type:
integer(int64)The parent code value. - sequenceNumber
-
Type:
integer(int32)The number that specifies the position of the code value item within the code type list.
Nested Schema : assignments
Nested Schema : ApiEntityCodeEntityType
Type:
object- codeType
-
Type:
objectApiEntityCodeType - entityType
-
Type:
stringAllowed Values:[ "SCOPE_ITEM", "PROJECT", "SCOPE_ASSIGNMENT", "WBS", "WORK_PACKAGE", "ACTIVITY", "RESOURCE", "PBS", "CONTRACT", "RISK", "COMMITMENT", "REPORT", "TASKS", "PROJECT_FUND", "WORKSPACE_FUND" ] - primaryKey
-
Type:
integer(int64)