SupportContact salesStart free trial
  • Getting started
    • Overview
    • Authentication
    • Querying tutorial
    • OData Integrations
    • Work Breakdown Structure
    • Software Development Kits
    • API Patch Notes
    • FAQ
    • Terms of use
  • API Reference
LogoLogo
SupportContact salesStart free trial
API ReferenceResource

Update Resource

PUT
https://api.projectmanager.com/api/data/resources/:resourceId
PUT
/api/data/resources/:resourceId
1curl -X PUT https://api.projectmanager.com/api/data/resources/resourceId \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
Try it
200Updated
1{
2 "error": {
3 "technicalError": "string",
4 "additionalErrors": [
5 "string"
6 ],
7 "validationErrors": {},
8 "message": "string"
9 },
10 "success": true,
11 "hasError": true,
12 "statusCode": "Continue",
13 "data": {
14 "id": "string",
15 "initials": "string",
16 "name": "string",
17 "firstName": "string",
18 "lastName": "string",
19 "email": "string",
20 "hourlyRate": 1.1,
21 "phone": "string",
22 "city": "string",
23 "state": "string",
24 "country": "string",
25 "countryName": "string",
26 "notes": "string",
27 "approver": {
28 "id": "string",
29 "name": "string"
30 },
31 "teams": [
32 {
33 "id": "string",
34 "name": "string"
35 }
36 ],
37 "skills": [
38 {
39 "id": "string",
40 "name": "string",
41 "inUse": true
42 }
43 ],
44 "onlineDateTime": "2024-01-15T09:30:00Z",
45 "role": "string",
46 "isActive": true,
47 "createdDate": "2024-01-15T09:30:00Z",
48 "createdBy": "string",
49 "modifiedDate": "2024-01-15T09:30:00Z",
50 "modifiedBy": "string",
51 "colorName": "string",
52 "color": "string",
53 "avatarUrl": "string",
54 "language": "string"
55 }
56}
Updates an existing Resource based on information you provide. A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user.
Was this page helpful?
Previous

Delete Resource

Next
Built with
Delete Resource
Updates an existing Resource based on information you provide. A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user.

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Path parameters

resourceIdstringRequiredformat: "uuid"
The id of the resource

Headers

x-integration-namestringOptional
The name of the calling system passed along as a header parameter

Request

The information to update the resource
The information to update the resource
The id of the resource
The name of the calling system passed along as a header parameter

Bearer authentication of the form Bearer <token>, where token is your auth token.

firstNamestring or nullOptional
The first name of the person Resource. Applies to personnel Resources only.
lastNamestring or nullOptional
The last name of the person Resource. Applies to personnel Resources only.
emailstring or nullOptional
The email address of this Resource. Note that this email cannot be changed once it has been assigned.
hourlyRatedouble or nullOptional>=0
The basic hourly rate for this Resource.
phonestring or nullOptional
The phone number associated with this Resource.
citystring or nullOptional
The city where this Resource is located.
statestring or nullOptional
The state or region where this Resource is located. This value is not constrained to a list of known states or regions.
countryCodestring or nullOptional
A text field indicating the country in which this Resource is located. This value must be one of the following: US, NZ, AU.
notesstring or nullOptional
Free-form text notes about this Resource. You may use this field to store extra information about the Resource.
roleIdstring or nullOptionalformat: "uuid"
The Role Id associated with this Resource. Applies to personnel Resources only.
teamIdslist of strings or nullOptional
The list of ResourceTeams to which this Resource belongs.
skillIdslist of strings or nullOptional
The list of ResourceSkills possessed by this Resource.
isActiveboolean or nullOptional
Active/Inactive the Resource.
approverIdstring or nullOptionalformat: "uuid"
The Approver Id associated with this Resource. Applies to personnel Resources only.
colorNamestring or nullOptional
Collaboration Color for this resource. eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
languagestring or nullOptional
Translation Language for this resource. e.g. en-US, en-GB, fr-FR, es-ES

Response

Success
errorobject or null
If the API call failed, this will contain information about the error that occurred.
successboolean or null

True if the API call succeeded; false otherwise.

hasErrorboolean or null
True if the API call failed.
statusCodeenum or null
The HTTP code of the response.
dataobject or null
A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user.

Active/Inactive the Resource.

Free-form text notes about this Resource. You may use this field to store extra information about the Resource.

A text field indicating the country in which this Resource is located. This value must be one of the following: US, NZ, AU.

Translation Language for this resource.

e.g. en-US, en-GB, fr-FR, es-ES