Import terms via CSV

post/importTerms
Internal-Use Only

Imports terms from a CSV File. The CSV should be uploaded as a multipart value under the key "termCSV". Additionally, the multipart key "updateExisting" can be set to true if the import should overwrite existing terms. This request will return a job that can be polled for status and results.

Request Samples

1

Response Samples

1{
2 "createdBy": "sasuser",
3 "modifiedBy": "sasuser",
4 "version": 4,
5 "id": "80520af5-af95-4e50-b7e6-36dfb8622c06",
6 "state": "running",
7 "heartbeatInterval": 30,
8 "heartbeatTimeStamp": "2023-10-30T14:10:37.325Z",
9 "elapsedTime": 273,
10 "submittedByApplication": "catalog",
11 "links": [
12 {
13 "method": "GET",
14 "rel": "self",
15 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06",
16 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06",
17 "type": "application/vnd.sas.job.execution.job"
18 },
19 {
20 "method": "GET",
21 "rel": "state",
22 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/state",
23 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/state",
24 "type": "text/plain"
25 },
26 {
27 "method": "PUT",
28 "rel": "update",
29 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06",
30 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06",
31 "type": "application/vnd.sas.job.execution.job",
32 "responseType": "application/vnd.sas.job.execution.job"
33 },
34 {
35 "method": "DELETE",
36 "rel": "delete",
37 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06",
38 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06"
39 },
40 {
41 "method": "PUT",
42 "rel": "updateState",
43 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/state",
44 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/state",
45 "type": "text/plain"
46 },
47 {
48 "method": "POST",
49 "rel": "updateHeartbeatTimeStamp",
50 "href": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/heartbeatTimeStamp",
51 "uri": "/jobExecution/jobs/80520af5-af95-4e50-b7e6-36dfb8622c06/heartbeatTimeStamp",
52 "type": "text/plain"
53 }
54 ],
55 "jobRequest": {
56 "version": 3,
57 "name": "CSV Term Import",
58 "description": "Import terms Via CSV",
59 "expiresAfter": "PT168H",
60 "createdByApplication": "catalog",
61 "jobDefinition": {
62 "version": 2,
63 "name": "termImport",
64 "type": "CATALOG",
65 "code": "591648c8-99a0-4c44-ba42-def75507dc7c"
66 }
67 },
68 "creationTimeStamp": "2023-10-30T14:10:36.963Z",
69 "modifiedTimeStamp": "2023-10-30T14:10:37.33Z"
70}

Header Parameters

NameTypeRequiredDescription
Content-Type
string
true

The representation for the CSV file.

Allowed value:
multipart/form-data
Default:
multipart/form-data
Accept
string
false

The desired representation for the response. The response is either a job or an error if there was an issue processing the job request.

Allowed values:
application/vnd.sas.job.execution.job+jsonapplication/json
Default:
application/vnd.sas.job.execution.job+json

Responses

StatusMeaningDescription
202AcceptedThe request is accepted.HeadersSchema
400Bad RequestBad request (the request is not well-formed).Schema
401UnauthorizedNot authenticated.Schema
403ForbiddenThe user does not have permission to complete this request.Schema
406Not AcceptableNot Acceptable. Include an Accept header with a supported value on the request.Schema