Create client
Add a client to Projects & Clients.
POST https://cotlet.dev/api/v1/resource-guru/clients
write
Returns the new client with its ID. It reaches no one and you can archive or edit it in Resource Guru, so it does not wait for your OK. Needs Manager permission or higher in Resource Guru.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Client name. |
| notes string | string | Details or links about the client. |
| color string | string | Hex color such as c0ffee. |
Request
curl -X POST https://cotlet.dev/api/v1/resource-guru/clients \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("resource-guru", "create_client", {"name":"Jane Doe"}) const result = await cotlet.call('resource-guru', 'create_client', {"name":"Jane Doe"}); cotlet call resource-guru create_client --data '{"name":"Jane Doe"}' Example response
{
"id": 55121,
"name": "Northwind Studio",
"notes": "Signed 23 Oct",
"archived": false
}