- Home
- API Enriched
- Object Storage
- object_store
- Create Stored Object.
Create Stored Object.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/object_store/namespaces/example/stored_objects/example/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"bytes_value":"example","content_format":"example","description":"example","mobile_app_shield":{"os_type":"ANDROID","release_version":"example"},"mobile_integrator":{"os_type":"ANDROID","release_version":"example"},"mobile_sdk":{"os_type":"ANDROID","release_version":"example"},"name":"example","namespace":"example","no_attributes":{},"object_type":"example","string_value":"example","mobile_sdk_self_serve":{"os_type":"ANDROID","release_version":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/object_store/namespaces/example/stored_objects/example/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "bytes_value": "example", "content_format": "example", "description": "example", "mobile_app_shield": { "os_type": "ANDROID", "release_version": "example" }, "mobile_integrator": { "os_type": "ANDROID", "release_version": "example" }, "mobile_sdk": { "os_type": "ANDROID", "release_version": "example" }, "name": "example", "namespace": "example", "no_attributes": {}, "object_type": "example", "string_value": "example", "mobile_sdk_self_serve": { "os_type": "ANDROID", "release_version": "example" } }'CreateObject is an API to upload an object to generic object store. Objects are immutable, a new version is created when the content is updated.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace x-required Namespace in which object is to be created.
Object_type x-required Type of the stored_object.
Name x-required Name of the stored_object.
Request Bodyrequired
Section titled “Request Bodyrequired”Request message for CreateObject API.
object
Exclusive with [string_value] Binary object contents. Should be encoded in base64 scheme.
The optional content format associated with object.
The optional description associated with object.
object
Version of mobile app shield release.
object
Version of mobile integrator release.
object
Version of mobile SDK release.
Name of the stored_object. Required: YES.
Namespace in which object is to be created Required: YES.
object
Type of the stored_object Required: YES.
Exclusive with [bytes_value] String formatted contents.
object
Version of mobile SDK release.
Responses
Section titled “Responses”A successful response.
Response message for CreateObject API.
object
object
Creation date & time for the object
Required: YES.
Optional field, the Description for the object.
object
Version of mobile app shield release.
object
Version of mobile integrator release.
object
Version of mobile SDK release.
Name of the stored object
Required: YES.
Namespace of the stored object
Required: YES.
object
URL of the stored object
Required: YES.
Version of the stored object
Required: YES.
object
Version of mobile SDK release.
object
object
object
The URL to upload or download the resource.
Example
{ "metadata": { "mobile_app_shield": { "os_type": "ANDROID" }, "mobile_integrator": { "os_type": "ANDROID" }, "mobile_sdk": { "os_type": "ANDROID" }, "mobile_sdk_self_serve": { "os_type": "ANDROID" } }, "presigned_url": { "aws": { "method": "ANY" } }, "status": "STORED_OBJECT_STATUS_NONE"}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example