Not specified in source.
Auth: BearerSource: API-DOC/workshop-rules/workshopownershiprequest.md
Request Example
{
"body": {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
Node.js Axios example
import axios from "axios";
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/shop/add`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/shop/add" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}'
Fetch example
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/shop/add`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}),
});
const data = await response.json();
console.log(data);
POST/api/ws/shop/add/confirmNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/workshopownershiprequest.md
Request Example
{
"body": {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
Node.js Axios example
import axios from "axios";
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/shop/add/confirm`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/shop/add/confirm" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}'
Fetch example
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/shop/add/confirm`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}),
});
const data = await response.json();
console.log(data);
POST/api/ws/shop/add/confirm-ownershipNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/workshopownershiprequest.md
Request Example
{
"body": {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
Node.js Axios example
import axios from "axios";
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/shop/add/confirm-ownership`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/shop/add/confirm-ownership" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}'
Fetch example
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/shop/add/confirm-ownership`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"name": "MinBil Workshop Oslo",
"description": "Authorized workshop with inspection and service capabilities.",
"category_ids": [
1,
4
]
}),
});
const data = await response.json();
console.log(data);