POST api/Workspace/CreateWorkspace

Request Information

URI Parameters

None.

Body Parameters

WorkspaceDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

Required

DateFilterType

DateFilterTypeEnum

None.

DateFilterTypeText

string

None.

DefaultStartDateFilter

date

None.

DefaultEndDateFilter

date

None.

DateToCompareType

DateToCompareTypeEnum

None.

DateToCompareTypeText

string

None.

CustomStartDateToCompare

date

None.

CustomEndDateToCompare

date

None.

AccountId

integer

Required

IsPrivate

boolean

None.

Owner

boolean

None.

CreatedBy

integer

None.

IsDeleted

boolean

None.

CreatedDate

date

None.

LastModifiedDate

date

None.

SharedWithUsers

Collection of UserDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "DateFilterType": 0,
  "DateFilterTypeText": "None",
  "DefaultStartDateFilter": "2019-08-25T00:33:27.2344374-04:00",
  "DefaultEndDateFilter": "2019-08-25T00:33:27.2344374-04:00",
  "DateToCompareType": 0,
  "DateToCompareTypeText": "Inherit",
  "CustomStartDateToCompare": "2019-08-25T00:33:27.2344374-04:00",
  "CustomEndDateToCompare": "2019-08-25T00:33:27.2344374-04:00",
  "AccountId": 3,
  "IsPrivate": true,
  "Owner": true,
  "CreatedBy": 6,
  "IsDeleted": true,
  "CreatedDate": "2019-08-25T00:33:27.2344374-04:00",
  "LastModifiedDate": "2019-08-25T00:33:27.2344374-04:00",
  "SharedWithUsers": [
    {
      "Id": 1,
      "Password": "sample string 2",
      "Username": "sample string 3",
      "DisplayName": "sample string 4",
      "IsAdmin": true,
      "IsCustomerAdmin": true,
      "ValidateEmailUrl": "sample string 5",
      "EmailValidated": true
    },
    {
      "Id": 1,
      "Password": "sample string 2",
      "Username": "sample string 3",
      "DisplayName": "sample string 4",
      "IsAdmin": true,
      "IsCustomerAdmin": true,
      "ValidateEmailUrl": "sample string 5",
      "EmailValidated": true
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.