Update a Job Code
PUT /job-codes/{id} — Use this method to update the job code record with the specified internal ID.
Parameters
Path parameters
|
Path parameter |
Required / Optional |
Description |
Type |
|---|---|---|---|
|
|
Required |
The internal ID of the job code. |
integer |
Query string parameter
|
Path parameter |
Required / Optional |
Description |
Type |
|---|---|---|---|
|
|
Optional |
A comma-separated list of attributes to include in the response. If not specified, the response includes all attributes for the job code returned. |
string |
|
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
|
|
Optional |
If set to any value other than |
Boolean |
Request body
An object including valid key-value pairs for the fields to be updated. The object cannot include key-value pairs for read-only attributes. For information about the JobCode object model, see JobCode object properties.
Response definitions
A successful request returns a JSON object with the following properties:
|
Property |
Description |
|---|---|
|
|
An array containing one of the following:
See Returned Data. |
|
|
A string containing a brief message about the status of your request — for example, |
A failed request returns a JSON object with the following properties:
|
Property |
Description |
|---|---|
|
|
A string containing a brief message about the status of your request — for example, |
Sample request
PUT /rest/v1/job-codes/8 HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Authorization: Bearer <OAuth2_access_token>
{
"loadedCost": 137.5,
}
In the example, <OAuth2_access_token> is the OAuth 2.0 access token obtained for the client application connecting to SuiteProjects Pro. See Authentication.
Sample response
{
"data": [
{
"id": 8
}
],
"message": "success"
}