Project Cost Rate via API

Hello,

I am trying to remove the cost rate with a PUT request on the project.

PUT workspaces/{workspaceId}/projects/{projectId}

with body:

{ costRate : null}

is accepted but the cost rate value is still applied to the project settings.

I want to clear the project cost rate like you can do with the web interface here…

Thanks!

Hi @Laurent

Thank you for joining the Clockify Forum.

Currently, the cost rate can be cleared exclusively via the web version as the API call to update the project requires the cost rate object to have an integer value of >=0

    "costRate": {
        "amount": INPUT INTEGER THATS GREATER OR EQUAL TO 0,
        "since": "2024-01-01T00:00:00Z" 
    } 

I understand it would be useful to have a null option to clear the rate via the API, and I’ve submitted a feature request on your behalf.

If you are having issues with newly created projects having 0 as the cost rate, please contact support@clockify.me

Cheers!