ProjectSupplierRole
An object that represents a supplier role for a project.
Supported API Calls: List | Get | Add | Update | Delete
Object Properties
Property |
Type |
Description |
Id |
integer |
A unique ID representing the ProjectSupplierRole object. When adding a new ProjectSupplierRole the value must be 0. |
ProjectId |
integer |
The ID for the parent project object. |
SupplierId |
integer |
The ID for the supplier ID that is given a role. |
ContactId |
integer |
The ID for the contact ID that is given a role. |
Role |
string (100) |
ID to set the contact role's Role drop-down box. Value should be equal to a ContactRole object's ID field. |
List
Description
Returns a list of supplier roles associated with the Project.
URL
https://{company}.bluecamroo.com/api/ProjectSupplierRole/list?{projectid}
HTTP Method
GET
Parameters
None
Data Return
Returns the list of contact roles in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
401: Not authorized (you need to log in)
Get
Description
Returns details for the specified supplier role.
URL
https://{company}.bluecamroo.com/api/ProjectSupplierRole/get/{id}?ProjectId={ProjectId}
HTTP Method
GET
Parameters
None
Data Return
Returns the ProjectSupplierRole object in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Add
Description
Adds a Project's supplier role.
URL
https://{company}.bluecamroo.com/api/ProjectSupplierRole/add
HTTP Method
POST
Parameters
A ProjectSupplierRole object
Data Return
Returns the ProjectSupplierRole object in the requested format (e.g., JSON or XML)
HTTP Return Status Code
201: Created
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Update
Description
Updates a ProjectSupplierRole object.
URL
https://{company}.bluecamroo.com/api/ProjectSupplierRole/update
HTTP Method
PUT
Parameters
A ProjectSupplierRole object
Data Return
Returns the ProjectSupplierRole object in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Delete
Description
Deletes the supplier role associated with the Project.
URL
https://{company}.bluecamroo.com/api/ProjectSupplierRole/delete/{id}?ProjectId={ProjectId}
HTTP Method
DELETE
Parameters
None
Data Return
None
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)