Page Introduction

WorkshopOwnershipRequest namespace

This namespace page contains request/response examples, endpoint matrix, and implementation-ready method details for frontend API clients.

  • Use quick index for direct navigation to endpoint details.
  • Use matrix view to verify auth and method-path combinations.
  • Test namespace calls in Workshop Try-It before integrating UI actions.

Workshop Namespace

WorkshopOwnershipRequest

Workshop ownership request and confirmation endpoints

3Endpoint methods

Endpoint Quick Index

Click an endpoint to jump to details and code examples.

Endpoint Matrix

MethodPathAuthSummary
POST/api/ws/shop/addBearerNot specified in source.
POST/api/ws/shop/add/confirmBearerNot specified in source.
POST/api/ws/shop/add/confirm-ownershipBearerNot specified in source.

Detailed Endpoints

POST/api/ws/shop/add

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/confirm

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/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-ownership

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/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);