To create a new workspace you can use the /workspaces
endpoint.
Only 2 fields are required:
Note: There is no limit to the number of workspaces each API user can create.
projectName |
String Specifies the name of the workspace to be created. |
projectNumber |
String Specifies the reference ID for the workspace from the user side. Generally not used.
Note: This is not the actual workspace ID. It’s just a custom reference ID given by you for your own purposes. |
status |
String Specifies the status of the workspace being created. The status can be either:
|
billingcostcentre |
String Allows the user to set a billing cost centre for the workspace.
Note: This is only applicable to customers with the Billing Cost Centre module enabled. |
{{codeStart}}
HTTP 1.1 POST https://api.<region>.whispir.com/workspaces?apikey=[your_api_key]
Authorization: Basic asdf98nf89asdvasd2r398h8sdf
x-api-key: your_api_key
Content-Type: application/vnd.whispir.workspace-v1+json
{
"projectName": "A Space Odessey",
"projectNumber": "2001",
"status": "A",
"billingcostcentre": "Hollywood"
}
{{codeEnd}}
{{codeStart}}
HTTP 1.1 POST https://api.<region>.whispir.com/workspaces?apikey=[your_api_key]
Authorization: Basic asdf98nf89asdvasd2r398h8sdf
x-api-key: your_api_key
Content-Type: application/vnd.whispir.workspace-v1+xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:workspace xmlns:ns2="http://schemas.api.whispir.com/dap" xmlns:ns3="http://schemas.api.whispir.com">
<projectName>A Space Odessey</projectName>
<projectNumber>2000</projectNumber>
<status>A</status>
<billingcostcentre>Hollywood</billingcostcentre>
</ns3:workspace>
{{codeEnd}}