activities

PATCH /companies/{companySlug}/activities/{activityId}

Changed on

Partially updates activity with provided id. Only provided fields will be updated.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/activities/{activityId}
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Request body

namestring

Name of the activity (must be unique within the company)

hourlyRateinteger

Default hourly rate in cents (125000 = 1250.00)

productIdinteger

ID of the product to use when invoicing this activity (optional)

billableboolean

Whether time entries with this activity should be billable by default

descriptionstring

Description of the activity (optional)

projectIdinteger

ID of the project this activity is associated with (optional)

Example request

{
  "name": "Development",
  "hourlyRate": 125000,
  "productId": 12345,
  "billable": true,
  "description": "Backend development work",
  "projectId": 12345
}

Response

OK

Changes