POST /buckets
Use this method to create a new bucket for a particular table or dataset. Use version 2 of the REST API to associate the bucket with a table, and use version 1 of the REST API to associate the bucket with a dataset. You must supply a JSON format body with your request.
When you create a bucket for a particular table or dataset, you must describe the structure of the data files you'll upload to the bucket. The file structure:
Specifies a particular table to associate with the bucket. Describes the file schema in the form of parsing options and field information.
The schema you specify must match the schema of the files you upload to the bucket.
Consider these rules when using buckets:
- Use a new bucket for each attempt to load data into a table or dataset.
- Specify an associated table (version 2) or dataset (version 1) when you create the bucket.
- A bucket can only be in the New state for a maximum of 24 hours. If you don't run the complete call within 24 hours, Workday aborts the bucket and removes any files you uploaded.
- You can upload 1 or more files to a bucket, but each file must conform to the same schema.
- You can create multiple buckets for the same table or dataset, but only 1 bucket per table or dataset can be in the Processing state at any given time.
- Workday loads data from the buckets into the table or dataset in the order you run the complete calls, not the order you create the buckets.
| Secured by |
|---|
- Prism: Tables Manage domain in the Prism Analytics functional area.
- Prism: Tables Owner Manage domain in the Prism Analytics functional area.
- Prism: Delete Table Data domain in the Prism Analytics functional area
- Prism: Insert Table Data domain in the Prism Analytics functional area
- Prism: Truncate Table Data domain in the Prism Analytics functional area
- Prism: Update Table Data domain in the Prism Analytics functional area
| Migration Notes |
|---|
- In V1 and V2 this resource was referred to as a bucket.
- In V1 this API created a Prism Dataset rather than a Prism table.
Servers
- https://<tenantHostname>/api/prismAnalytics/v3/{tenant}
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
id |
String | No | |
documentation |
String | No | |
name |
String | No | |
description |
String | No | |
targetDataset |
Object | No | |
targetDataset.id |
String | No | |
targetDataset.descriptor |
String | No | |
schema |
Object | No | |
schema.parseOptions |
Object | No | |
schema.parseOptions.fieldsEnclosedBy |
String | No | |
schema.parseOptions.ignoreTrailingExtraFields |
Boolean | No | |
schema.parseOptions.recordsDelimitedBy |
String | No | |
schema.parseOptions.fieldsEnclosingCharacterEscapedBy |
String | No | |
schema.parseOptions.ignoreTrailingWhitespacesInQuotes |
String | No | |
schema.parseOptions.commentCharacter |
String | No | |
schema.parseOptions.charset |
String | No | |
schema.parseOptions.headerLinesToIgnore |
Integer | No | |
schema.parseOptions.ignoreLeadingWhitespacesInQuotes |
String | No | |
schema.parseOptions.fieldsDelimitedBy |
String | No | |
schema.parseOptions.ignoreTrailingMissingFields |
Boolean | No | |
schema.parseOptions.type |
String | No | |
schema.parseOptions.ignoreTrailingWhitespaces |
Boolean | No | |
schema.parseOptions.ignoreLeadingWhitespaces |
Boolean | No | |
schema.fields[] |
Array | No | |
schema.fields[].id |
String | No | |
schema.fields[].name |
String | No | |
schema.fields[].parseFormat |
String | No |
Required for Date fields. The Date format that the values in this field must match to be recognized as a Date field. |
schema.fields[].context |
Object | No | |
schema.fields[].context.id |
String | No | |
schema.fields[].context.descriptor |
String | No | |
schema.fields[].description |
String | No |
The description of the field. The description must contain less than 1,000 characters. |
schema.fields[].ordinal |
Integer | No |
The order of the field in the file (index). The ordinal values:
|
schema.fields[].type |
Object | No | |
schema.fields[].type.id |
String | No |
Valid values:
|
schema.fields[].type.name |
String | No |
Valid values:
|
schema.fields[].precision |
Integer | No |
Required for Numeric fields. The maximum number of digits in a Numeric field. This value includes all digits to the left and right of the decimal point. The maximum value is 38. |
schema.fields[].scale |
Integer | No |
Required for Numeric fields. The maximum number of digits to the right of the decimal point in a Numeric field. This value must be less than the precision value. |
schema.fields[].businessObject |
Object | No | |
schema.fields[].businessObject.id |
String | No | |
schema.fields[].businessObject.descriptor |
String | No | |
displayName |
String | No | |
state |
Object | No | |
state.id |
String | No | |
state.descriptor |
String | No |
Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.