Upload the organization icon
curl --request PUT \
--url https://scribe.skeptrune.com/api/org/icon \
--header 'Content-Type: image/png' \
--cookie scribe_session= \
--data '<string>'import requests
url = "https://scribe.skeptrune.com/api/org/icon"
payload = "<string>"
headers = {
"cookie": "scribe_session=",
"Content-Type": "image/png"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'scribe_session=', 'Content-Type': 'image/png'},
body: '<string>'
};
fetch('https://scribe.skeptrune.com/api/org/icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scribe.skeptrune.com/api/org/icon",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_COOKIE => "scribe_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: image/png"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://scribe.skeptrune.com/api/org/icon"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "scribe_session=")
req.Header.Add("Content-Type", "image/png")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://scribe.skeptrune.com/api/org/icon")
.header("cookie", "scribe_session=")
.header("Content-Type", "image/png")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe.skeptrune.com/api/org/icon")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'scribe_session='
request["Content-Type"] = 'image/png'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"iconUrl": "/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon"
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}Organization
Upload the organization icon
Replaces the organization icon. Send the raw image bytes (PNG, JPEG, or WebP, at most 2 MB) as the request body. Requires a session user with the admin role or higher; API keys cannot change the icon.
PUT
/
api
/
org
/
icon
Upload the organization icon
curl --request PUT \
--url https://scribe.skeptrune.com/api/org/icon \
--header 'Content-Type: image/png' \
--cookie scribe_session= \
--data '<string>'import requests
url = "https://scribe.skeptrune.com/api/org/icon"
payload = "<string>"
headers = {
"cookie": "scribe_session=",
"Content-Type": "image/png"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'scribe_session=', 'Content-Type': 'image/png'},
body: '<string>'
};
fetch('https://scribe.skeptrune.com/api/org/icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scribe.skeptrune.com/api/org/icon",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_COOKIE => "scribe_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: image/png"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://scribe.skeptrune.com/api/org/icon"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "scribe_session=")
req.Header.Add("Content-Type", "image/png")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://scribe.skeptrune.com/api/org/icon")
.header("cookie", "scribe_session=")
.header("Content-Type", "image/png")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe.skeptrune.com/api/org/icon")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'scribe_session='
request["Content-Type"] = 'image/png'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"iconUrl": "/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon"
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}Authorizations
Browser session cookie set by the WorkOS sign-in flow.
Body
image/pngimage/jpegimage/webp
Raw image bytes of the new organization icon (PNG, JPEG, or WebP, at most 2 MB).
The body is of type file.
Response
The icon was stored.
Result of an organization icon upload.
URL where the uploaded icon can be fetched.
Example:
"/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon"