Create Resource (v1)
Method + Path
POST /v1/workspace/
Actual backend path: /v1/workspace/
Description
Create Resource
Authentication
Not required
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | application/json |
Request Body
Request body
{
"planId": "string",
"marketingOptIn": true
}
Response (201)
Response data
{
"resource": {
"id": "507f1f77bcf86cd799439011",
"name": "Created Resource",
"createdAt": "2024-01-15T10:00:00Z"
}
}
Common Errors
- 400 Bad Request: Invalid request body or query parameters
- 404 Not Found: Resource not found
- 422 Unprocessable Entity: Validation errors
- 500 Internal Server Error: Server error