Repository Shelves Manipulation
Create a shelf
POST
/
repos
/
{repo_id}
/
shelves
Authorizations
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Path Parameters
repo_id
string
requiredThe repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
Body
application/json
name
string
requiredDisplay name of the shelf
workspace_id
string
requiredWorkspace ID from which to shelve changes
reset_workspace
boolean
default: trueShould reset workspace changes after creating the shelf
Response
201 - application/json
id
string
requiredShelf identifier in Diversion
name
string
requiredDisplay name of the shelf
created_timestamp
integer
requiredSeconds since epoch UTC
branch_id
string
Optional branch ID from which the changes were shelved