Import terms via CSV
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. There are rules for the format of CSV files that contain glossary terms. For details about the rules for term CSV files, see Import Terms in the SAS Information Catalog User's Guide.
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}
| Name | Type | Required | Description |
|---|---|---|---|
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 |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 202 | Accepted | The request is accepted. | Headers | Schema |
| 400 | Bad Request | Bad request (the request is not well-formed). | Schema | |
| 401 | Unauthorized | Not authenticated. | Schema | |
| 403 | Forbidden | The user does not have permission to complete this request. | Schema | |
| 406 | Not Acceptable | Not Acceptable. Include an Accept header with a supported value on the request. | Schema |