POST/projects/api/v3/jobroles/:id/people.json
Assign a job role.
Assign a job role to one or more users. It will automatically unassign the given users from any other job role they might have assigned currently.
Body Params
Request contains information of a job role to be created or updated.
- Name
jobRole
- Type
- object
- Description
- JobRole contains all the information returned from a job role.
Responses
- Code
- 201
- Type
- object
- Schema
- Description
- 201 Created
Response contains information about a specific job role.
- Code
- 400
- Type
- object
- Schema
- Description
- 400 Bad Request
ErrorResponse defines how []Error should be marshaled to JSON.
- Code
- 403
- Type
- object
- Schema
- Description
- 403 Forbidden
ErrorResponse defines how []Error should be marshaled to JSON.
201 Created
Response
{
"included": {
"users": {
"additionalProp": {
"avatarUrl": "string",
"canAccessPortfolio": true,
"canAddProjects": true,
"canManagePortfolio": true,
"company": {
"id": 0,
"meta": {},
"type": "string"
},
"companyId": 0,
"companyRoleId": 0,
"createdAt": "string",
"createdBy": {
"id": 0,
"meta": {},
"type": "string"
},
"deleted": true,
"email": "string",
"firstName": "string",
"id": 0,
"isAdmin": true,
"isClientUser": true,
"isPlaceholderResource": true,
"isServiceAccount": true,
"jobRoles": [
{
"id": 0,
"meta": {},
"type": "string"
}
],
"lastLogin": "string",
"lastName": "string",
"lengthOfDay": 0,
"meta": {},
"skills": [
{
"id": 0,
"meta": {},
"type": "string"
}
],
"teams": [
{
"id": 0,
"meta": {},
"type": "string"
}
],
"timezone": "string",
"title": "string",
"type": "string",
"updatedAt": "string",
"updatedBy": {
"id": 0,
"meta": {},
"type": "string"
},
"userCost": 0,
"userRate": 0,
"userRates": {
"additionalProp": {
"amount": 0,
"currency": {
"id": 0,
"meta": {},
"type": "string"
}
}
},
"workingHour": {
"id": 0,
"meta": {},
"type": "string"
},
"workingHoursId": 0
}
}
},
"jobRole": {
"createdAt": "string",
"createdByUser": 0,
"deletedAt": "string",
"deletedByUser": 0,
"id": 0,
"isActive": true,
"name": "string",
"primaryUsers": [
{
"id": 0,
"meta": {},
"type": "string"
}
],
"updatedAt": "string",
"updatedByUser": 0,
"users": [
{
"id": 0,
"meta": {},
"type": "string"
}
]
}
}