Skip to content

Commit 59064ac

Browse files
fix: formatting (#208)
1 parent a31733b commit 59064ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+287
-407
lines changed

docs/api-reference/customer/add-customer-property.md

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Create a customer property via Plane API. HTTP POST request format,
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Create a customer property
98

109
<div class="api-endpoint-badge">
@@ -195,33 +194,30 @@ print(response.json())
195194
<template #javascript>
196195

197196
```javascript
198-
const response = await fetch(
199-
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/",
200-
{
201-
method: "POST",
202-
headers: {
203-
"X-API-Key": "your-api-key",
204-
"Content-Type": "application/json"
205-
},
206-
body: JSON.stringify({
207-
"name": "example-name",
208-
"display_name": "example-display_name",
209-
"description": "example-description",
210-
"property_type": "example-property_type",
211-
"relation_type": "example-relation_type",
212-
"is_required": true,
213-
"is_multi": true,
214-
"is_active": true,
215-
"sort_order": 1,
216-
"default_value": "example-default_value",
217-
"settings": "example-settings",
218-
"validation_rules": "example-validation_rules",
219-
"logo_props": "example-logo_props",
220-
"external_source": "example-external_source",
221-
"external_id": "example-external_id"
222-
})
223-
}
224-
);
197+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/", {
198+
method: "POST",
199+
headers: {
200+
"X-API-Key": "your-api-key",
201+
"Content-Type": "application/json",
202+
},
203+
body: JSON.stringify({
204+
name: "example-name",
205+
display_name: "example-display_name",
206+
description: "example-description",
207+
property_type: "example-property_type",
208+
relation_type: "example-relation_type",
209+
is_required: true,
210+
is_multi: true,
211+
is_active: true,
212+
sort_order: 1,
213+
default_value: "example-default_value",
214+
settings: "example-settings",
215+
validation_rules: "example-validation_rules",
216+
logo_props: "example-logo_props",
217+
external_source: "example-external_source",
218+
external_id: "example-external_id",
219+
}),
220+
});
225221
const data = await response.json();
226222
```
227223

docs/api-reference/customer/add-customer-request.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Create a customer request via Plane API. HTTP POST request format,
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Create a customer request
98

109
<div class="api-endpoint-badge">
@@ -97,20 +96,17 @@ print(response.json())
9796
<template #javascript>
9897

9998
```javascript
100-
const response = await fetch(
101-
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/requests/",
102-
{
103-
method: "POST",
104-
headers: {
105-
"X-API-Key": "your-api-key",
106-
"Content-Type": "application/json"
107-
},
108-
body: JSON.stringify({
109-
"title": "example-title",
110-
"description": "example-description"
111-
})
112-
}
113-
);
99+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/requests/", {
100+
method: "POST",
101+
headers: {
102+
"X-API-Key": "your-api-key",
103+
"Content-Type": "application/json",
104+
},
105+
body: JSON.stringify({
106+
title: "example-title",
107+
description: "example-description",
108+
}),
109+
});
114110
const data = await response.json();
115111
```
116112

docs/api-reference/customer/add-customer.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Create a customer via Plane API. HTTP POST request format, required
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Create a customer
98

109
<div class="api-endpoint-badge">
@@ -91,20 +90,17 @@ print(response.json())
9190
<template #javascript>
9291

9392
```javascript
94-
const response = await fetch(
95-
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/",
96-
{
97-
method: "POST",
98-
headers: {
99-
"X-API-Key": "your-api-key",
100-
"Content-Type": "application/json"
101-
},
102-
body: JSON.stringify({
103-
"name": "example-name",
104-
"email": "example-email"
105-
})
106-
}
107-
);
93+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customers/", {
94+
method: "POST",
95+
headers: {
96+
"X-API-Key": "your-api-key",
97+
"Content-Type": "application/json",
98+
},
99+
body: JSON.stringify({
100+
name: "example-name",
101+
email: "example-email",
102+
}),
103+
});
108104
const data = await response.json();
109105
```
110106

docs/api-reference/customer/delete-customer-property.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Delete a customer property via Plane API. HTTP DELETE request for r
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Delete a customer property
98

109
<div class="api-endpoint-badge">
@@ -67,15 +66,12 @@ print(response.json())
6766
<template #javascript>
6867

6968
```javascript
70-
const response = await fetch(
71-
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/",
72-
{
73-
method: "DELETE",
74-
headers: {
75-
"X-API-Key": "your-api-key"
76-
}
77-
}
78-
);
69+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/", {
70+
method: "DELETE",
71+
headers: {
72+
"X-API-Key": "your-api-key",
73+
},
74+
});
7975
const data = await response.json();
8076
```
8177

docs/api-reference/customer/delete-customer-request.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Delete a customer request via Plane API. HTTP DELETE request for re
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Delete a customer request
98

109
<div class="api-endpoint-badge">
@@ -78,8 +77,8 @@ const response = await fetch(
7877
{
7978
method: "DELETE",
8079
headers: {
81-
"X-API-Key": "your-api-key"
82-
}
80+
"X-API-Key": "your-api-key",
81+
},
8382
}
8483
);
8584
const data = await response.json();

docs/api-reference/customer/delete-customer.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Delete a customer via Plane API. HTTP DELETE request for removing r
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Delete a customer
98

109
<div class="api-endpoint-badge">
@@ -67,15 +66,12 @@ print(response.json())
6766
<template #javascript>
6867

6968
```javascript
70-
const response = await fetch(
71-
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/",
72-
{
73-
method: "DELETE",
74-
headers: {
75-
"X-API-Key": "your-api-key"
76-
}
77-
}
78-
);
69+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/", {
70+
method: "DELETE",
71+
headers: {
72+
"X-API-Key": "your-api-key",
73+
},
74+
});
7975
const data = await response.json();
8076
```
8177

docs/api-reference/customer/get-customer-detail.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Get retrieve a customer details via Plane API. Retrieve complete in
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Retrieve a customer
98

109
<div class="api-endpoint-badge">
@@ -67,15 +66,12 @@ print(response.json())
6766
<template #javascript>
6867

6968
```javascript
70-
const response = await fetch(
71-
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/",
72-
{
73-
method: "GET",
74-
headers: {
75-
"X-API-Key": "your-api-key"
76-
}
77-
}
78-
);
69+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/", {
70+
method: "GET",
71+
headers: {
72+
"X-API-Key": "your-api-key",
73+
},
74+
});
7975
const data = await response.json();
8076
```
8177

docs/api-reference/customer/get-customer-property-detail.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Get retrieve a customer property details via Plane API. Retrieve co
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Retrieve a customer property
98

109
<div class="api-endpoint-badge">
@@ -67,15 +66,12 @@ print(response.json())
6766
<template #javascript>
6867

6968
```javascript
70-
const response = await fetch(
71-
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/",
72-
{
73-
method: "GET",
74-
headers: {
75-
"X-API-Key": "your-api-key"
76-
}
77-
}
78-
);
69+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/", {
70+
method: "GET",
71+
headers: {
72+
"X-API-Key": "your-api-key",
73+
},
74+
});
7975
const data = await response.json();
8076
```
8177

docs/api-reference/customer/get-customer-property-value.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: List retrieve a customer property value via Plane API. HTTP GET req
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Retrieve a customer property value
98

109
<div class="api-endpoint-badge">
@@ -78,8 +77,8 @@ const response = await fetch(
7877
{
7978
method: "GET",
8079
headers: {
81-
"X-API-Key": "your-api-key"
82-
}
80+
"X-API-Key": "your-api-key",
81+
},
8382
}
8483
);
8584
const data = await response.json();

docs/api-reference/customer/get-customer-request-detail.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Get retrieve a customer request details via Plane API. Retrieve com
44
keywords: plane, plane api, rest api, api integration, customers, crm, customer management
55
---
66

7-
87
# Retrieve a customer request
98

109
<div class="api-endpoint-badge">
@@ -78,8 +77,8 @@ const response = await fetch(
7877
{
7978
method: "GET",
8079
headers: {
81-
"X-API-Key": "your-api-key"
82-
}
80+
"X-API-Key": "your-api-key",
81+
},
8382
}
8483
);
8584
const data = await response.json();

0 commit comments

Comments
 (0)