Add bundle
post
/api/pvlt/1.0/ctl/bundles
Adds a bundle.
The role performing this operation must have the CapCodeWriter
capability.
See Access control for more information about how
capabilities are used to control access to operations.
Request
Query parameters
custom_audit
- string
Request body
- application/json
required*
All of:
12
description
- stringcode
- string
Example
{
"name": "example_bundle",
"description": "An example bundle that exports a validator, normalizer, transformer, and action",
"code": "U2FtcGxlIGNvZGU="
}
Possible responses
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 410
- 500
- 503
- application/json
required*
All of:
12
description
- stringcode
- string
Example
{
"name": "example_bundle",
"description": "An example bundle that exports a validator, normalizer, transformer, and action",
"exports": {
"validators": [
{
"name": "is_positive",
"type": "validator",
"description": "A validator that returns true if its argument is positive.",
"dependencies": {
"properties": []
}
}
],
"normalizers": [
{
"name": "to_lower",
"type": "normalizer",
"description": "A normalizer that formats a string to lowercase without any dependencies."
}
],
"transformers": [
{
"name": "to_name_with_title",
"type": "transformer",
"description": "A transformer that accepts a full name and returns it prepended with a title.",
"dependencies": {
"properties": [
"gender",
"marital_status"
]
}
}
],
"actions": [
{
"name": "decrypt_and_send",
"type": "action",
"description": "An action that decrypts an object and sends it to a compliant third-party service."
}
]
},
"code": "U2FtcGxlIGNvZGU=",
"creation_time": "2022-12-02T02:02:14.398599Z"
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1001",
"message": "The access reason is missing.",
"context": {
"reason": null
}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1005",
"message": "The request is unauthorized.",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1007",
"message": "The operation is forbidden due to missing capabilities.",
"context": {
"username": "WebServer"
}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1004",
"message": "The bundle is not found.",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1026",
"message": "The operation is not allowed in in-memory mode.",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV3218",
"message": "Concurrent conflicting updates to the same object.",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1033",
"message": "The resource is gone.",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1000",
"message": "Something went wrong",
"context": {}
}
- application/json
object required*
context
- object required*Values of additional properties are stringsExample{
"objectid": "b56dd6aa-35f0-11ed-a261-0242ac120002"
}error_code
- string required*message
- string required*error_url
- string
Example
{
"error_code": "PV1009",
"message": "The operation timed out on the server.",
"context": {}
}
Query parameters
Request body
Code examples
Example