v1

latestOpenAPI 3.0.12026-08-041753011.2 MB
Expense

Update an expense

put/v1/workspaces/{workspaceId}/expenses/{expenseId}

Path parameters

workspaceIdstring required

Represents a workspace identifier across the system.

Example:64a687e29ae1f428e7ebe303

Represents a workspace identifier across the system.

expenseIdstring required

Represents an expense identifier across the system.

Example:64c777ddd3fcab07cfbb210c

Represents an expense identifier across the system.

Response

OK

billableboolean

Indicates whether expense is billable or not.

categoryIdstring

Represents category identifier across the system.

datestring

Represents a date in yyyy-MM-dd format.

fileIdstring

Represents file identifier across the system.

idstring

Represents expense identifier across the system.

isLockedboolean
lockedboolean
notesstring

Represents notes for an expense.

projectIdstring

Represents project identifier across the system.

quantitynumber double

Represents expense quantity as double data type.

taskIdstring

Represents task identifier across the system.

totalnumber double

Represents expense total as double data type.

userIdstring

Represents user identifier across the system.

workspaceIdstring

Represents workspace identifier across the system.

Example response

{
  "categoryId": "45y687e29ae1f428e7ebe890",
  "date": "2020-01-01",
  "fileId": "745687e29ae1f428e7ebe890",
  "id": "64c777ddd3fcab07cfbb210c",
  "notes": "This is a sample note for this expense.",
  "projectId": "25b687e29ae1f428e7ebe123",
  "taskId": "25b687e29ae1f428e7ebe123",
  "total": 10500.5,
  "userId": "89b687e29ae1f428e7ebe912",
  "workspaceId": "64a687e29ae1f428e7ebe303"
}