POST api/forms/simple

Creates a new simple form with the given information

Request Information

URI Parameters

None.

Body Parameters

Simple form data of new simple form

SimpleFormNewDTO
NameDescriptionTypeAdditional information
MIME

Simple Form file MIME-type

string

Required

String length: inclusive between 0 and 50

Data

Simple Form file data

Collection of byte

Required

Extension

Simple Form file extension

string

Required

String length: inclusive between 0 and 10

Prefix

Short URL prefix

string

String length: inclusive between 0 and 4

Name

Simple Form Name

string

Required

String length: inclusive between 0 and 50

Category

Simple Form Category, if any

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "MIME": "sample string 1",
  "Data": "QEA=",
  "Extension": "sample string 2",
  "Prefix": "sample string 3",
  "Name": "sample string 4",
  "Category": "sample string 5"
}

Response Information

Resource Description

New simple form

SimpleFormDTO
NameDescriptionTypeAdditional information
MIME

Simple Form file MIME-type

string

None.

Extension

Simple Form file extension

string

None.

URL

Simple Form URL

string

None.

Created

Timestamp when the simple form was created

date

None.

ID

Simple Form ID

integer

Required

Name

Simple Form Name

string

Required

String length: inclusive between 0 and 50

Category

Simple Form Category, if any

string

String length: inclusive between 0 and 50

Response Formats

application/json, text/json

Sample:
{
  "MIME": "sample string 1",
  "Extension": "sample string 2",
  "URL": "sample string 3",
  "Created": "2019-08-19T04:14:57.8023242+00:00",
  "ID": 4,
  "Name": "sample string 5",
  "Category": "sample string 6"
}