PUT
/
activitycodes
/
{id}
curl --request PUT \
  --url https://api.smokeball.com/activitycodes/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "updatedByUserId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
  "type": 0,
  "description": "Review contract",
  "code": "RC",
  "isBillable": false,
  "rateType": 0,
  "rate": 23.21,
  "quantity": 0.6,
  "taxInclusive": false,
  "taxExempt": false
}'
{
  "id": "<string>",
  "href": "<string>",
  "relation": "<string>",
  "method": "GET"
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

id
string
required

Body

Response

202
application/json

When request is accepted. Returns a hypermedia 'Link' object of the activity code to be updated.

The response is of type object.