Retrieve a Single Workflow Stage
Returns a single, workflow stage object by providing a specific numeric id.
spaces/:space_id/workflow_stages/:workflow_id
Path Parameters
-
:space_id
required numberNumeric id of a space
-
:workflow_stage_id
required numberWorkflow Stage
id
Response Properties
-
workflow_stage_object
Workflow Stage Object-
id
numberThe numeric ID
-
after_publish_id
numberWorkflow stage id that gets assigned after publishing
-
allow_publish
booleanBoolean to allow publishing
-
is_default
booleanBoolean to set as the default workflow
-
position
numberNumeric representation of the story's position in the folder
-
allow_all_stages
booleanBoolean to allow all stages
-
allow_all_users
booleanBoolean to allow change to all users
-
name
stringWorkflow name
-
color
stringWorkflow color
-
user_ids
numberAn array of user ids that are allowed to change the stage
-
space_role_ids
number[]Space role ids that are allowed to change the stage
-
workflow_stage_ids
numberAn array of workflow stage ids the user can change the stage to
-
workflow_id
numberNumeric ID of the connected workflow
-
allow_admin_change
booleanAllow admins to change from the current stage to the next available stages
-
allow_editor_change
booleanAllow editors to change from the current stage to the next available stages
-
curl "https://mapi.storyblok.com/v1/spaces/:663/workflow_stages/18" \
-X GET \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json"
// Using the Universal JavaScript Client:
// https://github.com/storyblok/storyblok-js-client
Storyblok.get('/spaces/:663/workflow_stages/18', {})
.then(response => {
console.log(response)
}).catch(error => {
console.log(error)
})
$client = new \Storyblok\Client('YOUR_OAUTH_TOKEN');
$client->get('/spaces/:663/workflow_stages/18')->getBody();
require 'storyblok'
client = Storyblok::Client.new(oauth_token: 'YOUR_OAUTH_TOKEN')
client.false('/spaces/:663/workflow_stages/18')
HttpResponse<String> response = Unirest.get("https://mapi.storyblok.com/v1/spaces/:663/workflow_stages/18")
.header("Authorization", "YOUR_OAUTH_TOKEN")
.asString();
var client = new RestClient("https://mapi.storyblok.com/v1/spaces/:663/workflow_stages/18");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "YOUR_OAUTH_TOKEN");
IRestResponse response = client.Execute(request);
import Foundation
let headers = [
"Content-Type": "application/json",
"Authorization": "YOUR_OAUTH_TOKEN"
]
let request = NSMutableURLRequest(url: NSURL(string: "https://mapi.storyblok.com/v1/spaces/:663/workflow_stages/18")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0)
request.method = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
import requests
url = "https://mapi.storyblok.com/v1/spaces/:663/workflow_stages/18"
querystring = {}
payload = ""
headers = {
'Content-Type': "application/json",
'Authorization': "YOUR_OAUTH_TOKEN"
}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)
You will receive a workflow stage object as response.