Change the project's name and how the app shows your users' properties, or say what the team will use. Fields left out stay as they are.
Needs a read + write key.
Tuti APIProject
Change the project's name and how the app shows your users' properties, or say what the team will use. Fields left out stay as they are.
Needs a read + write key.
/projectAuthorization Bearer token
application/json · object · required
namestring · 2–60 charactersRename the project: the name its portal, emails and the app show (its address stays the same); 2 to 60 characters
askingPropertystring · nullable · 1–64 charactersPick Who's asking: the number property of your users (users.sync's properties, like mrr) the app totals over each post's voters for the team; null: none
userColumnsarray of string · at most 10 itemsThe properties Users shows as columns, in order (up to 10)
Each item: 1–64 characters
propertyFormatsmap of objectHow the app shows each property, by name: a label of the team's own, and a format (text, number, money in a currency, or date). All of them at once, up to 100
usesarray of stringWhat the team will use: Home's Get set up follows it; none: every step
Each item one of"feedback""docs""changelog""support"
200The project, as changedapplication/json · object
The project, as changed
slugstringrequiredThe project's name in addresses, like its portal's Tuti address (acme.tuti.so); it never changes
namestringrequiredThe name its portal, emails and the app show
usesarray of stringrequiredWhat the team said it will use (feedback, docs, changelog, support; set with project.update): Home's Get set up follows it
portalUrlstringrequiredThe portal's address: its own domain or site path once verified, else its Tuti address
askingPropertystring · nullablerequiredWho's asking: the property totalled over each post's voters; null: none
userColumnsarray of stringrequiredThe properties Users shows as columns, in order
propertyFormatsmap of objectrequiredHow the app shows each property, by name
400The request isn't valid: a field is missing, has the wrong type or is out of range, or the body isn't a JSON object. The message names the field.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
500Something went wrong on Tuti's side. Try again in a moment.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
curl 'https://tuti.so/api/v1/project' \
--request PATCH \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Acme",
"askingProperty": "mrr",
"userColumns": [
"company",
"plan",
"mrr"
],
"propertyFormats": {
"mrr": {
"label": "MRR",
"format": "money",
"currency": "USD"
}
},
"uses": [
"feedback",
"changelog"
]
}'const response = await fetch("https://tuti.so/api/v1/project", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "Acme",
"askingProperty": "mrr",
"userColumns": [
"company",
"plan",
"mrr"
],
"propertyFormats": {
"mrr": {
"label": "MRR",
"format": "money",
"currency": "USD"
}
},
"uses": [
"feedback",
"changelog"
]
}),
});
const text = await response.text();import requests
response = requests.patch(
"https://tuti.so/api/v1/project",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
data="{\n \"name\": \"Acme\",\n \"askingProperty\": \"mrr\",\n \"userColumns\": [\n \"company\",\n \"plan\",\n \"mrr\"\n ],\n \"propertyFormats\": {\n \"mrr\": {\n \"label\": \"MRR\",\n \"format\": \"money\",\n \"currency\": \"USD\"\n }\n },\n \"uses\": [\n \"feedback\",\n \"changelog\"\n ]\n}",
)
print(response.text){
"slug": "acme",
"name": "Acme",
"uses": [
"feedback",
"changelog"
],
"portalUrl": "https://acme.tuti.so",
"askingProperty": "mrr",
"userColumns": [
"company",
"plan",
"mrr"
],
"propertyFormats": {
"mrr": {
"label": "MRR",
"format": "money",
"currency": "USD"
}
}
}{
"error": {
"code": "invalid_input",
"message": "title: Title is too short"
}
}{
"error": {
"code": "unauthorized",
"message": "This API key isn't valid or was revoked"
}
}{
"error": {
"code": "forbidden",
"message": "This key can only read. Create a read + write key to change things."
}
}{
"error": {
"code": "rate_limited",
"message": "Up to 600 requests a minute per key"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong"
}
}