POST /tenants – Creates a new tenant.
Headers:
Authorization: Bearer <access_token>
Content-Type: application/json or application/x-www-form-urlencoded
Body:
Path Parameters:
Query Parameters:
201 Created
400
401
409
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
POST /tenants{ "tenantId": "tenant123", "product": "script", "domain": "domain.com", "endpointUrl": "https://api.example.com"} Copy
POST /tenants{ "tenantId": "tenant123", "product": "script", "domain": "domain.com", "endpointUrl": "https://api.example.com"}
{ "tenantId": "tenant123", "product": "script", "domain": "domain.com", "endpointUrl": "https://api.example.com",} Copy
{ "tenantId": "tenant123", "product": "script", "domain": "domain.com", "endpointUrl": "https://api.example.com",}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
POST /tenants – Creates a new tenant.
📥 Request
Headers:
Authorization: Bearer <access_token>(required)Content-Type: application/json or application/x-www-form-urlencoded(required)Body:
Path Parameters:
Query Parameters:
📤 Response
201 Created– Returns a JSON-stringified Tenant object.❗ Errors
400401409500Error Response Format
📦 Examples
📥 Request
📥 Response