Assign a posture to a team
curl --request POST \
--url https://api.mnemom.ai/v1/postures/{posture_id}/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision_id": "<string>"
}
'import requests
url = "https://api.mnemom.ai/v1/postures/{posture_id}/assign"
payload = {
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision_id": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', revision_id: '<string>'})
};
fetch('https://api.mnemom.ai/v1/postures/{posture_id}/assign', 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://api.mnemom.ai/v1/postures/{posture_id}/assign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'revision_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://api.mnemom.ai/v1/postures/{posture_id}/assign"
payload := strings.NewReader("{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/postures/{posture_id}/assign")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/postures/{posture_id}/assign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"posture_id": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"assigned_revision_id": "<string>",
"revision_id": "<string>",
"assigned_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replaced_prior": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Postures
Assign a posture to a team
Sets the team’s active posture.
POST
/
postures
/
{posture_id}
/
assign
Assign a posture to a team
curl --request POST \
--url https://api.mnemom.ai/v1/postures/{posture_id}/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision_id": "<string>"
}
'import requests
url = "https://api.mnemom.ai/v1/postures/{posture_id}/assign"
payload = {
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision_id": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', revision_id: '<string>'})
};
fetch('https://api.mnemom.ai/v1/postures/{posture_id}/assign', 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://api.mnemom.ai/v1/postures/{posture_id}/assign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'revision_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://api.mnemom.ai/v1/postures/{posture_id}/assign"
payload := strings.NewReader("{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/postures/{posture_id}/assign")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/postures/{posture_id}/assign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"revision_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"posture_id": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"assigned_revision_id": "<string>",
"revision_id": "<string>",
"assigned_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replaced_prior": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
BearerAuthApiKeyAuth
Supabase JWT token in Authorization: Bearer header
Headers
Client-supplied idempotency token (required). Replays within 24 hours return the stored result; reusing a key with a different body returns 409. See ADR-023.
Path Parameters
Posture ID (tp-{8-hex}).
Pattern:
^tp-[a-z0-9-]{1,64}$Body
application/json
Response
Assignment created.
Team→posture binding (one active per team).
Revision pinned at assignment time (null = tracks current_revision_id).
Pinned revision (optional; defaults to current).
true when this assignment displaced a previously-active assignment on the team.
⌘I