Create Layout
POST /api/v1/workspaces/{workspace_id}/layouts
POST
/api/v1/workspaces/{workspace_id}/layouts
Creates a new layout.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspace_id
required
integer
Workspace ID
Request Body
Section titled “Request Body ”object
name
required
string
email_design_system_id
required
integer
brand_profile_id
integer
content
required
object
container_component_instance
required
object
id
required
string
Example
bd1c1b82-1a7b-4f0f-b079-30c1d4189bed name
string
Example
My Component component_id
required
integer
conditional_id
integer
field_values
hidden_from_locales
object
key
additional properties
boolean
Example
true component_instances
required
Array<object>
object
id
required
string
Example
bd1c1b82-1a7b-4f0f-b079-30c1d4189bed name
string
Example
My Component component_id
required
integer
conditional_id
integer
field_values
hidden_from_locales
object
key
additional properties
boolean
Example
trueResponses
Section titled “ Responses ”Successful
object
id
required
integer
Example
12345 name
required
string
Example
Admin content
required
object
container_component_instance
required
object
id
required
string
Example
bd1c1b82-1a7b-4f0f-b079-30c1d4189bed name
string
Example
My Component component_id
required
integer
conditional_id
integer
field_values
hidden_from_locales
object
key
additional properties
boolean
Example
true component_instances
required
Array<object>
object
id
required
string
Example
bd1c1b82-1a7b-4f0f-b079-30c1d4189bed name
string
Example
My Component component_id
required
integer
conditional_id
integer
field_values
hidden_from_locales
object
key
additional properties
boolean
Example
true email_design_system_id
required
integer
Example
12345 brand_profile_id
required
integer
Example
12345 locales
required
Array<string>
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z updated_at
required
string format: date-time
Example
2023-08-23T10:30:00.000ZUnauthorized
object
message
required
string
Example
Record not foundForbidden
object
message
required
string
Example
Record not foundNot Found
object
message
required
string
Example
Record not foundUnprocessable Entity
object
message
required
string
Example
Failed to save errors
required
object
key
additional properties
Array<string>
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}