Hello,
I am developing an application using the Clockify API and would appreciate some clarification on the behavior of a few custom field parameters. I’ve been reviewing the documentation, but I am still unclear on the following points:
- sourceType in userCustomFieldValues:
-
The documentation (under Get member’s profile > Response Schema) lists this as “WORKSPACE” or “USER”.
-
Could you explain the functional difference between these two source types?
-
How can I create or update a user’s custom field to produce a sourceType of “WORKSPACE” versus “USER”?
- workspaceDefaultValue Behavior:
- I’ve attempted to set a workspaceDefaultValue for a custom field. However, in my tests, when I add this custom field to a user and don’t specify a value, the user’s value for that field is null, not the default I set.
- Is this the expected behavior? If so, what is the intended use case for workspaceDefaultValue?
- projectDefaultValues:
- Similar to the above, how is the projectDefaultValues parameter intended to function?
- Which API endpoint and request body should I use to create a custom field where I can successfully populate the projectDefaultValues?
Thanks.