Skip to content

Commit cf1387b

Browse files
committed
Update documentation with latest OpenAPI spec
1 parent b7461ff commit cf1387b

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

openapi.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3302,12 +3302,12 @@
33023302
"content" : {
33033303
"application/json" : {
33043304
"schema" : {
3305-
"$ref" : "#/components/schemas/MediaUploadConfigRequestOneShot"
3305+
"$ref" : "#/components/schemas/MediaUploadRequestOneShot"
33063306
}
33073307
},
33083308
"multipart/form-data" : {
33093309
"schema" : {
3310-
"$ref" : "#/components/schemas/MediaUploadConfigRequestOneShot"
3310+
"$ref" : "#/components/schemas/MediaUploadRequestOneShot"
33113311
}
33123312
}
33133313
}
@@ -15098,15 +15098,29 @@
1509815098
},
1509915099
"additionalProperties" : false
1510015100
},
15101-
"MediaUploadConfigRequestOneShot" : {
15101+
"MediaUploadRequestOneShot" : {
1510215102
"type" : "object",
15103+
"required" : [
15104+
"media",
15105+
"media_category"
15106+
],
1510315107
"properties" : {
1510415108
"additional_owners" : {
1510515109
"type" : "array",
1510615110
"items" : {
1510715111
"$ref" : "#/components/schemas/UserId"
1510815112
}
1510915113
},
15114+
"media" : {
15115+
"anyOf" : [
15116+
{
15117+
"$ref" : "#/components/schemas/MediaPayloadBinary"
15118+
},
15119+
{
15120+
"$ref" : "#/components/schemas/MediaPayloadByte"
15121+
}
15122+
]
15123+
},
1511015124
"media_category" : {
1511115125
"$ref" : "#/components/schemas/MediaCategory"
1511215126
},
@@ -15128,7 +15142,8 @@
1512815142
},
1512915143
"shared" : {
1513015144
"type" : "boolean",
15131-
"description" : "Whether this media is shared or not."
15145+
"description" : "Whether this media is shared or not.",
15146+
"default" : false
1513215147
}
1513315148
},
1513415149
"additionalProperties" : false

0 commit comments

Comments
 (0)