Skip to main content
POST
Assign activity rate
Latest stable version
A collaborator’s activity rate is a timeline of non-overlapping periods, not a list of independent records. If the range you assign touches or overlaps an existing period, that period can be truncated, split in two, or deleted — and if it is identical to yours, the two are merged into one.Two consequences:
  • The response body is empty and identical in every case, so it does not tell you what happened. Read the timeline back with resources.show-activity-rates.
  • A successful call can legitimately change nothing at all — including silently discarding the end date you sent.
See Activity rate periods.

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

date_range
string<local-date-interval>
required
Example:

"2019-11-11/2019-12-12"

average_rate
number<percentage>
required
Example:

100

work_regime_id
string<snowflake> | null

If null, it will adopt the sector’s work regime.

Example:

"872815618512410358"

indemnity_enabled
boolean

If not specified, it will adopt the instance indemnity configuration.

compensation_enabled
boolean
default:true
trainee
boolean
default:false
apprentice
boolean
default:false
paid_hourly
boolean
default:false

Response

204

Resource activity rate assigned.