Create a room
POST /api/2.0/files/rooms
Request
Creates a room in the "Rooms" section.
Authorization
An API key is a token that you provide when making API calls. Include the token in a cookie parameter called asc_auth_key
.
Example: asc_auth_key=864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
,text/json
,text/plain
.- Content-Type
enum of string
Can be one of:
application/json
,application/*+json
,text/json
.
Body
Request parameters for creating a room
- title
string
Room name
- quota
integer
int64 Room quota
- indexing
boolean
Indexing
- denyDownload
boolean
Room quota
- lifetime
object
- deletePermanently
boolean
Specifies action
- period
enum of integer
int32 Can be one of:
0
,1
,2
.- value
integer
int32 Specifies time period value
- enabled
boolean
Enabled
- watermark
object
Request parameters for adding watermarks
- enabled
boolean
Specifies whether watermarks are on or off
- additions
one of
- .
enum of string
[UserName - User name, UserEmail - User email, UserIpAdress - User ip adress, CurrentDate - Current date, RoomName - Room name]
Can be one of:
UserName
,UserEmail
,UserIpAdress
,CurrentDate
,RoomName
.- .
enum of integer
[1 - User name, 2 - User email, 4 - User ip adress, 8 - Current date, 16 - Room name]
Can be one of:
1
,2
,4
,8
,16
.
- text
string
Watermark Text
- rotate
integer
int32 Watermark text and image rotate
- imageScale
integer
int32 Watermark image scale
- imageUrl
string
The path to the temporary image file
- imageHeight
number
double Watermark image height
- imageWidth
number
double Watermark image width
- logo
object
Logo request parameters
- tmpFile
string
The path to the temporary image file
- x
integer
int32 The X coordinate of the rectangle starting point
- y
integer
int32 The Y coordinate of the rectangle starting point
- width
integer
int32 The rectangle width
- height
integer
int32 The rectangle height
- tags
array of string
List of tags
- color
string
Color
- cover
string
Cover
- roomType
one of
- .
enum of string
[FillingFormsRoom - Form filling room, EditingRoom - Collaboration room, CustomRoom - Custom room, PublicRoom - Public room, VirtualDataRoom - Virtual data room]
Can be one of:
FillingFormsRoom
,EditingRoom
,CustomRoom
,PublicRoom
,VirtualDataRoom
.- .
enum of integer
[1 - Form filling room, 2 - Collaboration room, 5 - Custom room, 6 - Public room, 8 - Virtual data room]
Can be one of:
1
,2
,5
,6
,8
.
- private
boolean
Private
- share
array of object
Collection of sharing parameters
- shareTo
string
uuid ID of the user with whom we want to share a file
- email
string
email User email address
- access
one of
- .
enum of string
[None - None, ReadWrite - Read and write, Read - Read, Restrict - Restrict, Varies - Varies, Review - Review, Comment - Comment, FillForms - Fill forms, CustomFilter - Custom filter, RoomManager - Room manager, Editing - Editing, ContentCreator - Content creator]
Can be one of:
None
,ReadWrite
,Read
,Restrict
,Varies
,Review
,Comment
,FillForms
,CustomFilter
,RoomManager
,Editing
,ContentCreator
.- .
enum of integer
[0 - None, 1 - Read and write, 2 - Read, 3 - Restrict, 4 - Varies, 5 - Review, 6 - Comment, 7 - Fill forms, 8 - Custom filter, 9 - Room manager, 10 - Editing, 11 - Content creator]
Can be one of:
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
.
Examples
POST /api/2.0/files/rooms HTTP/1.1
Accept: application/json
Content-Length: 763
Content-Type: application/json
Host: example.com
{
"title": "dynamic_payment",
"quota": 1234,
"indexing": true,
"denyDownload": true,
"lifetime": {
"deletePermanently": true,
"period": 0,
"value": 1234,
"enabled": true
},
"watermark": {
"enabled": true,
"text": "some text",
"rotate": 1234,
"imageScale": 1234,
"imageUrl": "some text",
"imageHeight": -8.5,
"imageWidth": -8.5
},
"logo": {
"tmpFile": "some text",
"x": 1234,
"y": 1234,
"width": 1234,
"height": 1234
},
"tags": [
"some text"
],
"color": "some text",
"cover": "some text",
"private": true,
"share": [
{
"value": {
"shareTo": "75a5f745-f697-4418-b38d-0fe0d277e258",
"email": "Ollie.Schowalter@gmail.com"
}
}
]
}
curl --request POST \
--url https://example.com/api/2.0/files/rooms \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"title": "dynamic_payment",
"quota": 1234,
"indexing": true,
"denyDownload": true,
"lifetime": {
"deletePermanently": true,
"period": 0,
"value": 1234,
"enabled": true
},
"watermark": {
"enabled": true,
"text": "some text",
"rotate": 1234,
"imageScale": 1234,
"imageUrl": "some text",
"imageHeight": -8.5,
"imageWidth": -8.5
},
"logo": {
"tmpFile": "some text",
"x": 1234,
"y": 1234,
"width": 1234,
"height": 1234
},
"tags": [
"some text"
],
"color": "some text",
"cover": "some text",
"private": true,
"share": [
{
"value": {
"shareTo": "75a5f745-f697-4418-b38d-0fe0d277e258",
"email": "Ollie.Schowalter@gmail.com"
}
}
]
}'
Responses
200
Room information
- title
string
Title
- access
one of
- .
enum of string
[None - None, ReadWrite - Read and write, Read - Read, Restrict - Restrict, Varies - Varies, Review - Review, Comment - Comment, FillForms - Fill forms, CustomFilter - Custom filter, RoomManager - Room manager, Editing - Editing, ContentCreator - Content creator]
Can be one of:
None
,ReadWrite
,Read
,Restrict
,Varies
,Review
,Comment
,FillForms
,CustomFilter
,RoomManager
,Editing
,ContentCreator
.- .
enum of integer
[0 - None, 1 - Read and write, 2 - Read, 3 - Restrict, 4 - Varies, 5 - Review, 6 - Comment, 7 - Fill forms, 8 - Custom filter, 9 - Room manager, 10 - Editing, 11 - Content creator]
Can be one of:
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
.
- shared
boolean
Specifies if the file is shared or not
- created
object
- utcTime
string
date-time UtcTime
- timeZoneOffset
string
date-span TimeZoneOffset
- createdBy
object
- id
string
uuid ID
- displayName
string
Display name
- title
string
Title
- avatar
string
Avatar
- avatarOriginal
string
Original size avatar
- avatarMax
string
Maximum size avatar
- avatarMedium
string
Medium size avatar
- avatarSmall
string
Small avatar
- profileUrl
string
Profile URL
- hasAvatar
boolean
Specifies if the user has an avatar or not
- isAnonim
boolean
Specifies if the user is an anonim or not
- updated
object
- utcTime
string
date-time UtcTime
- timeZoneOffset
string
date-span TimeZoneOffset
- autoDelete
object
- utcTime
string
date-time UtcTime
- timeZoneOffset
string
date-span TimeZoneOffset
- rootFolderType
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress, VirtualDataRoom - Virtual Data Room]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
,VirtualDataRoom
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress, 29 - Virtual Data Room]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
,29
.
- parentRoomType
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress, VirtualDataRoom - Virtual Data Room]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
,VirtualDataRoom
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress, 29 - Virtual Data Room]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
,29
.
- updatedBy
object
- id
string
uuid ID
- displayName
string
Display name
- title
string
Title
- avatar
string
Avatar
- avatarOriginal
string
Original size avatar
- avatarMax
string
Maximum size avatar
- avatarMedium
string
Medium size avatar
- avatarSmall
string
Small avatar
- profileUrl
string
Profile URL
- hasAvatar
boolean
Specifies if the user has an avatar or not
- isAnonim
boolean
Specifies if the user is an anonim or not
- providerItem
boolean
Provider is specified or not
- providerKey
string
Provider key
- providerId
integer
int32 Provider ID
- order
string
Order
- id
integer
int32 Id
- rootFolderId
integer
int32 Root folder id
- originId
integer
int32 Origin id
- originRoomId
integer
int32 Origin room id
- originTitle
string
Origin title
- originRoomTitle
string
Origin room title
- canShare
boolean
Can share
- security
object
Security
- Read
boolean
- Comment
boolean
- FillForms
boolean
- Review
boolean
- Create
boolean
- Edit
boolean
- Delete
boolean
- CustomFilter
boolean
- EditRoom
boolean
- Rename
boolean
- ReadHistory
boolean
- Lock
boolean
- EditHistory
boolean
- CopyTo
boolean
- Copy
boolean
- MoveTo
boolean
- Move
boolean
- Pin
boolean
- Mute
boolean
- EditAccess
boolean
- Duplicate
boolean
- SubmitToFormGallery
boolean
- Download
boolean
- Convert
boolean
- CopySharedLink
boolean
- ReadLinks
boolean
- Reconnect
boolean
- CreateRoomFrom
boolean
- CopyLink
boolean
- Embed
boolean
- ChangeOwner
boolean
- IndexExport
boolean
- requestToken
string
- parentId
integer
int32 Parent folder ID
- filesCount
integer
int32 Number of files
- foldersCount
integer
int32 Number of folders
- isShareable
boolean
Specifies if a folder is shareable or not
- isFavorite
boolean
Specifies if a folder is favorite or not
- new
integer
int32 Number for a new folder
- mute
boolean
Specifies if a folder is muted or not
- tags
array of string
List of tags
- logo
object
- original
string
Original
- large
string
Large
- medium
string
Medium
- small
string
Small
- color
string
Color
- cover
object
- id
string
- data
string
- pinned
boolean
Specifies if a folder is pinned or not
- roomType
one of
- .
enum of string
[FillingFormsRoom - Form filling room, EditingRoom - Collaboration room, CustomRoom - Custom room, PublicRoom - Public room, VirtualDataRoom - Virtual data room]
Can be one of:
FillingFormsRoom
,EditingRoom
,CustomRoom
,PublicRoom
,VirtualDataRoom
.- .
enum of integer
[1 - Form filling room, 2 - Collaboration room, 5 - Custom room, 6 - Public room, 8 - Virtual data room]
Can be one of:
1
,2
,5
,6
,8
.
- private
boolean
Specifies if a folder is private or not
- indexing
boolean
Indexing
- denyDownload
boolean
Deny download
- lifetime
object
- deletePermanently
boolean
Specifies action
- period
enum of integer
int32 Can be one of:
0
,1
,2
.- value
integer
int32 Specifies time period value
- enabled
boolean
Enabled
- watermark
object
- additions
one of
- .
enum of string
[UserName - User name, UserEmail - User email, UserIpAdress - User ip adress, CurrentDate - Current date, RoomName - Room name]
Can be one of:
UserName
,UserEmail
,UserIpAdress
,CurrentDate
,RoomName
.- .
enum of integer
[1 - User name, 2 - User email, 4 - User ip adress, 8 - Current date, 16 - Room name]
Can be one of:
1
,2
,4
,8
,16
.
- text
string
Watermark Text
- rotate
integer
int32 Watermark text and image rotate
- imageScale
integer
int32 Watermark image scale
- imageUrl
string
Watermark image url
- imageHeight
number
double Watermark image height
- imageWidth
number
double Watermark image width
- type
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress, VirtualDataRoom - Virtual Data Room]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
,VirtualDataRoom
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress, 29 - Virtual Data Room]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
,29
.
- inRoom
boolean
InRoom
- quotaLimit
integer
int64 Quota
- isCustomQuota
boolean
Specifies if the room has a custom quota or not
- usedSpace
integer
int64 Counter
- external
boolean
Specifies if the link external
- passwordProtected
boolean
Specifies if the password protected
- expired
boolean
Expired
- fileEntryType
enum of integer
int32 Can be one of:
1
,2
.
401
Unauthorized