ProJect - Get non-piecework rate

API Url

Used for loading non-piecework rates for a project and activity.

GET
http://localhost:16010/ProMarkREST/rest/ProJect/projects/{project_id}/activity/{activiti_id}/rates

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
activity_idString

Activity ID.

Query parameters

FieldTypeDescription
filteroptionalString

Employee filter fields, values and conditions, in a json format.

fromoptionalDate

The start date.

tooptionalDate

The end date.

Success 200

FieldTypeDescription
rateoptionalNumber

Non-Piecework rate.

responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"rates": [
{
"projectId": "COLOR",
"activityId": "GREEN",
"rate": 96,
"minRate": 50,
"maxRate": 400
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.