- Omni
- Document APIs
- Storage
- Category
- Document
- Sharing
Update Storage
Developing
preprod
preprod
PATCH
/storages/{storage_id}/
Last modified:2025-03-16 09:25:51
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
storage_id
string
required
Example:
{{storage_id}}
Body Params application/json
name
string
required
<= 100 characters
config
object
optional
credentials
object
required
Example
{
"name": "Other Documents",
"config": {},
"credentials": {}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH '/storages/{{storage_id}}/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Other Documents",
"config": {},
"credentials": {}
}'
Responses
🟢200Success
application/json
Body
Schema defining storage configurations for different cloud providers.
id
string
optional
Match pattern:
^[a-zA-Z0-9._-]{8,40}$
tenant_id
string
optional
Match pattern:
^[a-zA-Z0-9._-]{8,40}$
created_by
string <uuid>
optional
updated_by
string <uuid>
optional
created_at
string <date-time>
optional
Default:
1970-01-01T00:00:00Z
updated_at
string <date-time>
optional
Default:
1970-01-01T00:00:00Z
name
string
required
<= 100 characters
provider
enum<string>
required
Allowed values:
aws_s3gcp_storageazure_blob
bucket
string
required
Match pattern:
^[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]$
config
object
optional
credentials
object
required
managed
boolean
optional
Default:
false
Example
{
"id": "01JNJM1F7X7MDNY8Z4P8167JYR",
"tenant_id": "60371b35-d8f5-4a7f-beee-97aada4bb8a8",
"created_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
"updated_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
"created_at": "2025-03-05T13:11:36.423715Z",
"updated_at": "2025-03-05T13:49:41.127072Z",
"name": "Main Docs",
"provider": "aws_s3",
"bucket": "uoz3tg8gthmvwrpchvcg1mhydjaai8z-apmxazrgo2",
"config": {
"VersioningConfiguration": {
"Status": "qui sed voluptate culpa"
},
"ServerSideEncryptionConfiguration": {
"Rules": [
"amet non culpa",
"irure"
]
},
"ObjectLockConfiguration": {},
"LoggingConfiguration": {},
"LifecycleConfiguration": {},
"CORSConfiguration": {},
"PublicAccessBlockConfiguration": {}
},
"credentials": {
"region": "",
"aws_access_key_id": "",
"aws_secret_access_key": ""
}
}