Update table information

put/sessions/{sessionId}/data/{libref}/{tableName}

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.

NameTypeRequiredDescription
version
integer<int32>
false

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

id
string<object-id>
false

Specifies the identifier for this data set.

name
string
false

Specifies the name of this data set.

type
string
false

Specifies the table type as DATA or VIEW.

extendedType
string
false

Specifies that this is a special type of table. Most tables do not have an extended type, but the ones that do typically have special columns, rows, or both that are used by some SAS/STAT procedures.

bookmarkLength
integer<int32>
false

Specifies the length of the bookmark in this data set.

compressionRoutine
string
false

Specifies the compression routine for this data set.

creationTimeStamp
string<date-time>
false

Specifies the creation timestamp for this data set.

modifiedTimeStamp
string<date-time>
false

Specifies the modification timestamp for this data set.

engine
string
false

Specifies the name of the engine that handles this data set.

label
string
false

Specifies the label for this data set. This label describes the data set.

libref
string
false

Specifies the name of the library that owns this data set.

logicalRecordCount
integer<int32>
false

Specifies the logical record count for this data set.

columnCount
integer<int32>
false

Specifies the number of columns that are defined in this data set.

rowCount
integer<int32>
false

Specifies the number of rows that are defined in this data set.

physicalRecordCount
integer<int32>
false

Specifies the physical record count for this data set.

recordLength
integer<int32>
false

Specifies the length of a record in this data set.

encoding
string
false

Specifies the character encoding that is used to store the table.

links
array [Link]
false

Specifies links that apply to this data set.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
404Not Found

No resource exists at the requested path.

Schema
412Precondition Failed

The 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 Required

The request headers did not include an If-Match or If-Unmodified-Since precondition.

Schema