From Bright Pattern Documentation
Jump to: navigation, search
• 5.19 • 5.2 • 5.3 • 5.8

Create Tenant from Template Form Data

This method is functionally equivalent to the Create Tenant from Template JSON Data method, but it differs in the way that the tenant data is passed. In this method, tenant data is passed as HTML form data instead JSON. See the Appendix A for HTML form example.


Request

URL

http[s]://<host>:<port>/configapi/v2/selfservice/tenant/<tenant_url>

Method

POST

Body

MIME multipart message (RFC2388) (content type: mulipart/form-data)

Example

Field Name Content Type Example
tenantName Tenant name
numberMap 0000000000:9251234567
numberMap 0000000001:8003215555
firstName FirstName
lastName LastName
loginId admin
password topsecret
email admin@nowhere.net
template application/zip
lockTimeout 120


Response

Code Description
200 Success
400 Bad arguments
403 Access denied
409 Constraint violations
500 Server error
503 Lock timeout



< Previous | Next >
< Previous | Next >