Update table information

put/sessions/{sessionId}/data/{libref}/{tableName}
Internal-Use Only

Updates the name or label of the specified table.

Request Samples

1

Response Samples

1{
2 "bookmarkLength": 12,
3 "compressionRoutine": "NO",
4 "modifiedTimeStamp": "2018-05-04T18:02:27.780000Z",
5 "creationTimeStamp": "2018-05-04T18:02:27.749000Z",
6 "engine": "V9",
7 "id": "AFGHANISTAN",
8 "label": "AFGHANISTAN - Source: GfkGeoMarketing - 2012 ",
9 "libref": "MAPSGFK",
10 "encoding": "Default",
11 "links": [
12 {
13 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN",
14 "method": "GET",
15 "rel": "self",
16 "type": "application/vnd.sas.compute.data.table",
17 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN"
18 },
19 {
20 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN",
21 "method": "GET",
22 "rel": "alternate",
23 "type": "application/vnd.sas.compute.data.table.summary",
24 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN"
25 },
26 {
27 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows",
28 "itemType": "application/vnd.sas.compute.data.table.row",
29 "method": "GET",
30 "rel": "rows",
31 "type": "application/vnd.sas.collection",
32 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows"
33 },
34 {
35 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows",
36 "method": "GET",
37 "rel": "rowsAsCSV",
38 "type": "text/csv",
39 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows"
40 },
41 {
42 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rowSet",
43 "method": "GET",
44 "rel": "rowSet",
45 "type": "application/vnd.sas.compute.data.table.row.set",
46 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rowSet"
47 },
48 {
49 "href": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/columns",
50 "itemType": "application/vnd.sas.compute.data.table.column",
51 "method": "GET",
52 "rel": "columns",
53 "type": "application/vnd.sas.collection",
54 "uri": "/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/columns"
55 }
56 ],
57 "logicalRecordCount": 49858,
58 "name": "AFGHANISTAN",
59 "columnCount": 10,
60 "rowCount": 49858,
61 "physicalRecordCount": 49858,
62 "recordLength": 88,
63 "version": 1
64}

Path Parameters

NameTypeRequiredDescription
libref
string<object-id>
true

Specifies the libref for the request.

sessionId
string<object-id>
true

Specifies the ID of the session.

tableName
string<object-id>
true

Specifies the table or data set to update.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

Specifies the ETag of the table that you are updating.

Request Body

Specifies the information to update for the table.

Provides information about a SAS table or data set.

Example:
{"bookmarkLength":12,"compressionRoutine":"NO","modifiedTimeStamp":"2018-05-04T18:02:27.780000Z","creationTimeStamp":"2018-05-04T18:02:27.749000Z","engine":"V9","id":"AFGHANISTAN","label":"AFGHANISTAN - Source: GfkGeoMarketing - 2012 ","libref":"MAPSGFK","encoding":"Default","links":[{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN","method":"GET","rel":"self","type":"application/vnd.sas.compute.data.table","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN"},{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN","method":"GET","rel":"alternate","type":"application/vnd.sas.compute.data.table.summary","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN"},{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows","itemType":"application/vnd.sas.compute.data.table.row","method":"GET","rel":"rows","type":"application/vnd.sas.collection","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows"},{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows","method":"GET","rel":"rowsAsCSV","type":"text/csv","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rows"},{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rowSet","method":"GET","rel":"rowSet","type":"application/vnd.sas.compute.data.table.row.set","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/rowSet"},{"href":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/columns","itemType":"application/vnd.sas.compute.data.table.column","method":"GET","rel":"columns","type":"application/vnd.sas.collection","uri":"/compute/sessions/RKEY-ses0000/data/MAPSGFK/AFGHANISTAN/columns"}],"logicalRecordCount":49858,"name":"AFGHANISTAN","columnCount":10,"rowCount":49858,"physicalRecordCount":49858,"recordLength":88,"version":1}
NameTypeRequiredDescription
links
array [Link]
false

Specifies links that apply to this data set.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path.Schema
412Precondition FailedThe `If-Match` request header did not match the resource's entity tag, or the `If-Unmodified-Since` request header did not match the resources last modified timestamp.Schema
428Precondition RequiredThe request headers did not include an `If-Match` or `If-Unmodified-Since` precondition.Schema