Skip to content

Commit 4f34fa5

Browse files
author
netbirddev
committed
Update API pages with v0.50.0
1 parent 9dc623c commit 4f34fa5

File tree

1 file changed

+70
-4
lines changed

1 file changed

+70
-4
lines changed

src/pages/ipa/resources/accounts.mdx

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ echo $response;
187187
"domain": "netbird.io",
188188
"domain_category": "private",
189189
"created_at": "2023-05-05T09:00:35.477782Z",
190-
"created_by": "google-oauth2|277474792786460067937"
190+
"created_by": "google-oauth2|277474792786460067937",
191+
"onboarding": {
192+
"signup_form_pending": true,
193+
"onboarding_flow_pending": false
194+
}
191195
}
192196
]
193197
```
@@ -219,7 +223,11 @@ echo $response;
219223
"domain": "string",
220224
"domain_category": "string",
221225
"created_at": "string",
222-
"created_by": "string"
226+
"created_by": "string",
227+
"onboarding": {
228+
"signup_form_pending": "boolean",
229+
"onboarding_flow_pending": "boolean"
230+
}
223231
}
224232
]
225233
```
@@ -510,6 +518,28 @@ echo $response;
510518
</Properties>
511519
</details>
512520
521+
</Property>
522+
<Property name="onboarding" type="object" required={false}>
523+
524+
<details class="custom-details" open>
525+
<summary>More Information</summary>
526+
<Properties>
527+
528+
<Properties><Property name="signup_form_pending" type="boolean" required={true}>
529+
530+
Indicates whether the account signup form is pending
531+
532+
</Property>
533+
<Property name="onboarding_flow_pending" type="boolean" required={true}>
534+
535+
Indicates whether the account onboarding flow is pending
536+
537+
</Property>
538+
</Properties>
539+
540+
</Properties>
541+
</details>
542+
513543
</Property>
514544
</Properties>
515545
@@ -544,6 +574,10 @@ curl -X PUT https://api.netbird.io/api/accounts/{accountId} \
544574
"network_traffic_packet_counter_enabled": true
545575
},
546576
"lazy_connection_enabled": true
577+
},
578+
"onboarding": {
579+
"signup_form_pending": true,
580+
"onboarding_flow_pending": false
547581
}
548582
}'
549583
```
@@ -571,6 +605,10 @@ let data = JSON.stringify({
571605
"network_traffic_packet_counter_enabled": true
572606
},
573607
"lazy_connection_enabled": true
608+
},
609+
"onboarding": {
610+
"signup_form_pending": true,
611+
"onboarding_flow_pending": false
574612
}
575613
});
576614
let config = {
@@ -620,6 +658,10 @@ payload = json.dumps({
620658
"network_traffic_packet_counter_enabled": true
621659
},
622660
"lazy_connection_enabled": true
661+
},
662+
"onboarding": {
663+
"signup_form_pending": true,
664+
"onboarding_flow_pending": false
623665
}
624666
})
625667
headers = {
@@ -669,6 +711,10 @@ func main() {
669711
"network_traffic_packet_counter_enabled": true
670712
},
671713
"lazy_connection_enabled": true
714+
},
715+
"onboarding": {
716+
"signup_form_pending": true,
717+
"onboarding_flow_pending": false
672718
}
673719
}`)
674720
client := &http.Client {
@@ -736,6 +782,10 @@ request.body = JSON.dump({
736782
"network_traffic_packet_counter_enabled": true
737783
},
738784
"lazy_connection_enabled": true
785+
},
786+
"onboarding": {
787+
"signup_form_pending": true,
788+
"onboarding_flow_pending": false
739789
}
740790
})
741791
response = https.request(request)
@@ -767,6 +817,10 @@ RequestBody body = RequestBody.create(mediaType, '{
767817
"network_traffic_packet_counter_enabled": true
768818
},
769819
"lazy_connection_enabled": true
820+
},
821+
"onboarding": {
822+
"signup_form_pending": true,
823+
"onboarding_flow_pending": false
770824
}
771825
}');
772826
Request request = new Request.Builder()
@@ -814,6 +868,10 @@ curl_setopt_array($curl, array(
814868
"network_traffic_packet_counter_enabled": true
815869
},
816870
"lazy_connection_enabled": true
871+
},
872+
"onboarding": {
873+
"signup_form_pending": true,
874+
"onboarding_flow_pending": false
817875
}
818876
}',
819877
CURLOPT_HTTPHEADER => array(
@@ -860,7 +918,11 @@ echo $response;
860918
"domain": "netbird.io",
861919
"domain_category": "private",
862920
"created_at": "2023-05-05T09:00:35.477782Z",
863-
"created_by": "google-oauth2|277474792786460067937"
921+
"created_by": "google-oauth2|277474792786460067937",
922+
"onboarding": {
923+
"signup_form_pending": true,
924+
"onboarding_flow_pending": false
925+
}
864926
}
865927
```
866928
```json {{ title: 'Schema' }}
@@ -890,7 +952,11 @@ echo $response;
890952
"domain": "string",
891953
"domain_category": "string",
892954
"created_at": "string",
893-
"created_by": "string"
955+
"created_by": "string",
956+
"onboarding": {
957+
"signup_form_pending": "boolean",
958+
"onboarding_flow_pending": "boolean"
959+
}
894960
}
895961
```
896962
</CodeGroup>

0 commit comments

Comments
 (0)