Api
Create a collection
Create a collection owned by the caller.
AuthorizationBearer <token>
Pass a user session token (from /auth/login) or an app API key (gk_…).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/collections/" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "string", "userId": "string", "name": "string", "description": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}{ "error": "string"}{ "error": "string"}