Skip to content

place.stream.server.upsertStorage

Lexicon Version: 1

Type: procedure

Create or update S3 storage configuration for backups.

Parameters: (None defined)

Input:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
urlstringS3 storage URL in format: s3+https://ACCESS_KEY:SECRET_KEY@endpoint/bucket
isActivebooleanWhether backup storage is currently active.

Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
storageplace.stream.server.defs#storage

Possible Errors:

  • InvalidUrl: The provided S3 URL is invalid or malformed.
  • ConnectionFailed: Could not connect to the S3 endpoint with the provided credentials.
  • MaskedCredentialsModified: Cannot modify URL while keeping masked credentials. Provide full credentials or omit URL to keep existing configuration.

{
"lexicon": 1,
"id": "place.stream.server.upsertStorage",
"defs": {
"main": {
"type": "procedure",
"description": "Create or update S3 storage configuration for backups.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [],
"properties": {
"url": {
"type": "string",
"description": "S3 storage URL in format: s3+https://ACCESS_KEY:SECRET_KEY@endpoint/bucket"
},
"isActive": {
"type": "boolean",
"description": "Whether backup storage is currently active."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["storage"],
"properties": {
"storage": {
"type": "ref",
"ref": "place.stream.server.defs#storage"
}
}
}
},
"errors": [
{
"name": "InvalidUrl",
"description": "The provided S3 URL is invalid or malformed."
},
{
"name": "ConnectionFailed",
"description": "Could not connect to the S3 endpoint with the provided credentials."
},
{
"name": "MaskedCredentialsModified",
"description": "Cannot modify URL while keeping masked credentials. Provide full credentials or omit URL to keep existing configuration."
}
]
}
}
}