Create a file set

post/fileSets
Internal-Use Only

Creates a file set to hold files to transport to and from the cluster. The file set object that is passed in, requires only the context ID set.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2022-06-14T15:00:46.040481Z",
3 "createdBy": "someuser",
4 "modifiedTimeStamp": "2022-06-14T15:00:46.040481Z",
5 "modifiedBy": "someuser",
6 "id": "JOB_20220614_150046_039_1",
7 "version": 1,
8 "contextId": "6794ba8a-6aff-4989-ae77-93f67286aea2",
9 "links": [
10 {
11 "method": "GET",
12 "rel": "self",
13 "href": "/batch/fileSets/JOB_20220614_150046_039_1",
14 "uri": "/batch/fileSets/JOB_20220614_150046_039_1",
15 "type": "application/vnd.sas.batch.file.set"
16 },
17 {
18 "method": "DELETE",
19 "rel": "delete",
20 "href": "/batch/fileSets/JOB_20220614_150046_039_1",
21 "uri": "/batch/fileSets/JOB_20220614_150046_039_1"
22 },
23 {
24 "method": "GET",
25 "rel": "up",
26 "href": "/batch/fileSets",
27 "uri": "/batch/fileSets",
28 "type": "application/vnd.sas.collection",
29 "itemType": "application/vnd.sas.batch.file.set"
30 },
31 {
32 "method": "GET",
33 "rel": "files",
34 "href": "/batch/fileSets/JOB_20220614_150046_039_1/files",
35 "uri": "/batch/fileSets/JOB_20220614_150046_039_1/files",
36 "type": "application/vnd.sas.collection",
37 "itemType": "application/vnd.sas.batch.file.set.file"
38 }
39 ]
40}

Request Body

Provides information about a file set that contains files sent to and from the cluster.

NameTypeRequiredDescription
createdBy
string
false

The username of whoever created the resource.

modifiedBy
string
false

The username of whoever last modified the resource.

creationTimeStamp
string<date-time>
false

The timestamp for when the resource was created.

modifiedTimeStamp
string<date-time>
false

The timestamp for when the resource was last modified.

contextId
string
false

Specifies the context ID that is associated with the file set.

id
string
false

Specifies the ID of the file set assigned by the Batch service.

links
array [Link]
false

Specifies links that apply to the file set.

version
integer<int32>
false

Specifies the version number of this representation schema. This is version 1.

>= 1<= 1

Responses

StatusMeaningDescription
201CreatedThe file set was created.HeadersSchema
400Bad RequestThe create file set request is not valid due to one of the following reasons. <UL> <LI> The request is not valid JSON. <LI> The version is not a number. <LI> The version is not a valid value. <LI> A required field is missing. <LI> The context specified by the context ID is not found. </UL> See the returned error response for more information.Schema
404Not FoundThe specified context is not found.Schema
406Not AcceptableThe requested response type is not acceptable. See the returned error response for more information and acceptable response types.Schema