All URIs are relative to https://sandbox.zenodo.org/api
Method | HTTP request | Description |
---|---|---|
discard_deposit | POST /deposit/depositions/{depositId}/actions/discard | Discard changes in the current editing session. |
edit_deposit | POST /deposit/depositions/{depositId}/actions/edit | Unlock already submitted deposition for editing. |
new_deposit_version | POST /deposit/depositions/{depositId}/actions/newversion | Create a new version of a deposition. |
publish_deposit | POST /deposit/depositions/{depositId}/actions/publish | Publish a deposition. Note, once a deposition is published, you can no longer delete it. |
Deposit discard_deposit(deposit_id)
Discard changes in the current editing session.
Untested swagger description
# load the gem
require 'zenodo_client'
# setup authorization
ZenodoClient.configure do |config|
# Configure API key authorization: access_token
config.api_key['access_token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['access_token'] = 'Bearer'
end
api_instance = ZenodoClient::ActionsApi.new
deposit_id = 56 # Integer |
begin
#Discard changes in the current editing session.
result = api_instance.discard_deposit(deposit_id)
p result
rescue ZenodoClient::ApiError => e
puts "Exception when calling ActionsApi->discard_deposit: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
deposit_id | Integer |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Deposit edit_deposit(deposit_id)
Unlock already submitted deposition for editing.
Untested swagger description
# load the gem
require 'zenodo_client'
# setup authorization
ZenodoClient.configure do |config|
# Configure API key authorization: access_token
config.api_key['access_token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['access_token'] = 'Bearer'
end
api_instance = ZenodoClient::ActionsApi.new
deposit_id = 56 # Integer |
begin
#Unlock already submitted deposition for editing.
result = api_instance.edit_deposit(deposit_id)
p result
rescue ZenodoClient::ApiError => e
puts "Exception when calling ActionsApi->edit_deposit: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
deposit_id | Integer |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Deposit new_deposit_version(deposit_id)
Create a new version of a deposition.
Untested swagger description
# load the gem
require 'zenodo_client'
# setup authorization
ZenodoClient.configure do |config|
# Configure API key authorization: access_token
config.api_key['access_token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['access_token'] = 'Bearer'
end
api_instance = ZenodoClient::ActionsApi.new
deposit_id = 56 # Integer |
begin
#Create a new version of a deposition.
result = api_instance.new_deposit_version(deposit_id)
p result
rescue ZenodoClient::ApiError => e
puts "Exception when calling ActionsApi->new_deposit_version: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
deposit_id | Integer |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Deposit publish_deposit(deposit_id)
Publish a deposition. Note, once a deposition is published, you can no longer delete it.
Untested swagger description
# load the gem
require 'zenodo_client'
# setup authorization
ZenodoClient.configure do |config|
# Configure API key authorization: access_token
config.api_key['access_token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['access_token'] = 'Bearer'
end
api_instance = ZenodoClient::ActionsApi.new
deposit_id = 56 # Integer |
begin
#Publish a deposition. Note, once a deposition is published, you can no longer delete it.
result = api_instance.publish_deposit(deposit_id)
p result
rescue ZenodoClient::ApiError => e
puts "Exception when calling ActionsApi->publish_deposit: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
deposit_id | Integer |
- Content-Type: application/json, multipart/form-data
- Accept: application/json