Create job definitions

post/definitions
Internal-Use Only

Creates multiple job definitions.

Request Samples

1

Response Samples

1{
2 "links": [],
3 "name": "items",
4 "items": [
5 {
6 "creationTimeStamp": "2021-11-08T19:25:29.590Z",
7 "modifiedTimeStamp": "2021-11-08T19:25:29.658Z",
8 "createdBy": "sas.modelRepository",
9 "modifiedBy": "sas.modelRepository",
10 "version": 2,
11 "id": "c2283c0e-c69c-48cb-b314-84207afe7cb0",
12 "name": "Default Model Manager Scoring Job Definition",
13 "type": "Compute",
14 "parameters": [
15 {
16 "version": 1,
17 "name": "_contextName",
18 "defaultValue": "SAS Model Manager compute context",
19 "type": "CHARACTER",
20 "label": "Context Name",
21 "required": false
22 },
23 {
24 "version": 1,
25 "name": "_omitJsonLog",
26 "defaultValue": "true",
27 "type": "BOOLEAN",
28 "required": false
29 }
30 ],
31 "code": "{mappedCode}",
32 "links": [
33 {
34 "method": "GET",
35 "rel": "self",
36 "href": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",
37 "uri": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",
38 "type": "application/vnd.sas.job.definition"
39 },
40 {
41 "method": "GET",
42 "rel": "alternate",
43 "href": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",
44 "uri": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",
45 "type": "application/vnd.sas.summary"
46 }
47 ],
48 "properties": [
49 {
50 "name": "type",
51 "value": "scoring"
52 },
53 {
54 "name": "objecttype",
55 "value": "sas.models.model"
56 }
57 ]
58 },
59 {
60 "creationTimeStamp": "2021-11-08T19:25:35.973Z",
61 "modifiedTimeStamp": "2021-11-08T19:25:35.976Z",
62 "createdBy": "sas.analyticsFlows",
63 "modifiedBy": "sas.analyticsFlows",
64 "version": 2,
65 "id": "801d5009-3b33-41c1-b7e4-b33f77248ede",
66 "name": "Analytics Flow Job Definition",
67 "type": "AnalyticsFlow",
68 "parameters": [
69 {
70 "version": 1,
71 "name": "flowId",
72 "type": "CHARACTER",
73 "label": "Flow ID",
74 "required": true
75 },
76 {
77 "version": 1,
78 "name": "toNodeUri",
79 "type": "CHARACTER",
80 "label": "ID of final node to run",
81 "required": false
82 },
83 {
84 "version": 1,
85 "name": "casServerId",
86 "defaultValue": "cas",
87 "type": "CHARACTER",
88 "label": "ID of CAS Server to use for Component execution",
89 "required": false
90 },
91 {
92 "version": 1,
93 "name": "casSessionName",
94 "defaultValue": "AdvancedAnalyticSession",
95 "type": "CHARACTER",
96 "label": "Name of CAS Session to use for Component execution",
97 "required": false
98 },
99 {
100 "version": 1,
101 "name": "contextName",
102 "type": "CHARACTER",
103 "label": "Name of Compute Context to use for Component execution",
104 "required": false
105 }
106 ],
107 "links": [
108 {
109 "method": "GET",
110 "rel": "self",
111 "href": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",
112 "uri": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",
113 "type": "application/vnd.sas.job.definition"
114 },
115 {
116 "method": "GET",
117 "rel": "alternate",
118 "href": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",
119 "uri": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",
120 "type": "application/vnd.sas.summary"
121 }
122 ]
123 }
124 ],
125 "version": 2
126}

Query Parameters

NameTypeRequiredDescription
parentFolderUri
string
false

The URI of the parent folder to contain the job definition.

Header Parameters

NameTypeRequiredDescription
accept
string
false

Accept header value for the versioned media type corresponding to the version to be returned.

Request Body

The job definitions to create.

A pageable collection of job definition objects.

NameTypeRequiredDescription
name
string
false

The name of the collection.

start
integer<int64>
false

The zero-based index of the first item in the collection.

limit
integer
false

The number of items that were requested for the collection.

count
integer<int64>
false

If populated indicates the number of items in the collection.

accept
string
false

A space-delimited list of media types from which an Accept header can be constructed.

links
array [Link]
false

The links that apply to the collection.

version
integer
false

The version number of the collection representation. This representation is version 2.

items
array [Job Definition Schema]
true

An array that contains job definition resources.

Responses

StatusMeaningDescription
200OKThe request succeeded. The items in the response MUST match 1 to 1 with the items in the request. If the job definition was created successfully, then the item in the response will be an application/vnd.sas.job.definition object. If the create failed for a particular job definition, then the corresponding item in the response will be an application/vnd.sas.error object.Schema
400Bad RequestThe request was invalid.Schema
415Unsupported Media TypeThe requested media type is not supported.