Create or update message bundles

post/contents/{namespace}
Internal-Use Only

Retrieves multiple properties files in the http request and the API creates new message bundles or updates the existing message bundles. The properties files can be archived in a ZIP file. This API accepts the ZIP file. In the http request, the properties files or a ZIP file are written in the MIME multipart/form-data format RFC7578.

Request Samples

1

Response Samples

1{
2 "accept": "string",
3 "count": 0,
4 "items": [
5 {
6 "details": [
7 "string"
8 ],
9 "errorCode": 0,
10 "errors": [
11 {}
12 ],
13 "httpStatusCode": 0,
14 "id": "string",
15 "links": [
16 {
17 "href": "string",
18 "itemType": "string",
19 "method": "string",
20 "rel": "string",
21 "responseItemType": "string",
22 "responseType": "string",
23 "title": "string",
24 "type": "string",
25 "uri": "string"
26 }
27 ],
28 "message": "string",
29 "remediation": "string",
30 "version": 0
31 }
32 ],
33 "limit": 0,
34 "links": [
35 {
36 "href": "string",
37 "itemType": "string",
38 "method": "string",
39 "rel": "string",
40 "responseItemType": "string",
41 "responseType": "string",
42 "title": "string",
43 "type": "string",
44 "uri": "string"
45 }
46 ],
47 "name": "string",
48 "start": 0,
49 "version": 1
50}

Path Parameters

NameTypeRequiredDescription
namespace
string
true

The namespace of the message bundle.

Header Parameters

NameTypeRequiredDescription
Accept
string
true

"application/json" or "application/vnd.sas.collection+json" are accepted.

Accept-Item
string
true

"application/json" or "application/vnd.sas.error+json" are accepted.

Content-Type
string
true

The Content-Type should be 'multipart/form-data' and the MIME boundary needs to be specified with the 'boundary='. Here''s an example. 'Content-Type: multipart/form-data; boundary=aBoundaryString'

Request Body

The properties files must be written in UTF-8.

Responses

StatusMeaningDescription
200OKThe request succeeded.Schema
400Bad RequestThe request was invalid.Schema