Create File

HTTP Request

POSThttps://staging.api-gw.propdata.net/gallery/api/v1/files/

Example Response

{
"id": 0,
"site": 0,
"file_size": 0,
"content_type": "string",
"created": "2021-03-01T14:10:08.581Z",
"modified": "2021-03-01T14:10:08.581Z",
"deleted": "2021-03-01T14:10:08.581Z",
"uuid": "770bba28-9f80-4d40-9c51-6e022364af91",
"source_ref": "string",
"file": "http://www.example.com",
"accepted": false,
"caption": "string",
"ordinal": -2147483648,
"file_type": "string",
"private": false,
"model": "string",
"user_groups": [],
"tagged_date": "string",
"category": 0,
"tags": []
}

NameDescription

id

integer

ID

site

integer

Site

file_size

integer

File size

content_type

stringnon-empty

Content type

created

string

Created

modified

string

Modified

deleted

string

Deleted

uuid

string

Uuid

source_ref

nullable

string<= 100 characters

Source ref

file

string

File

accepted

boolean

Accepted

caption

nullable

string<= 200 characters

Caption

ordinal

nullable

integer

Ordinal

file_type

required

string

File type

Choices: fileimage

private

boolean

Private

model

required

string[ 1...50 ] characters

Model

user_groups

nullable

array of integers

User groups

Choices: [ 1,2,3...2147483648 ]

tagged_date

nullable

string

Tagged date

category

nullable

integer

Category

tags

array of integers

Choices: [ 1,2,3...2147483648 ]

Responses

201
400 Bad request body
403 You do not have permission to perform this action
500 Internal server error
503 This website is not active