Publish your operator page
curl --request POST \
--url https://hiresweep.com/api/openapi/marketplace/operator/profile/publish \
--header 'x-api-key: <api-key>'import requests
url = "https://hiresweep.com/api/openapi/marketplace/operator/profile/publish"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://hiresweep.com/api/openapi/marketplace/operator/profile/publish', 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://hiresweep.com/api/openapi/marketplace/operator/profile/publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-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"
"net/http"
"io"
)
func main() {
url := "https://hiresweep.com/api/openapi/marketplace/operator/profile/publish"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hiresweep.com/api/openapi/marketplace/operator/profile/publish")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiresweep.com/api/openapi/marketplace/operator/profile/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [
"software_engineering"
],
"levels": [
"entry"
],
"services": [
"applications"
],
"priceModel": "monthly",
"monthlyPriceUsd": 0,
"successFeeUsd": 0,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"termsVersion": "<string>",
"termsAcceptedAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"suspendedAt": "2023-11-07T05:31:56Z",
"suspendedReason": "<string>",
"status": "unpublished",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"defined": true,
"code": "HANDLE_INVALID",
"status": 400,
"message": "A handle is 3 to 30 lower-case letters, digits or hyphens, and starts and ends with a letter or digit.",
"data": "<unknown>"
}{
"defined": true,
"code": "OPERATOR_SUSPENDED",
"status": 403,
"message": "This operator profile is suspended.",
"data": "<unknown>"
}{
"defined": true,
"code": "HANDLE_TAKEN",
"status": 409,
"message": "That handle is taken.",
"data": "<unknown>"
}Operators
Publish your operator page
Puts your page on the site. It needs a valid handle nobody else holds, the current standard terms accepted, and the required fields. Requires authentication.
POST
/
marketplace
/
operator
/
profile
/
publish
Publish your operator page
curl --request POST \
--url https://hiresweep.com/api/openapi/marketplace/operator/profile/publish \
--header 'x-api-key: <api-key>'import requests
url = "https://hiresweep.com/api/openapi/marketplace/operator/profile/publish"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://hiresweep.com/api/openapi/marketplace/operator/profile/publish', 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://hiresweep.com/api/openapi/marketplace/operator/profile/publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-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"
"net/http"
"io"
)
func main() {
url := "https://hiresweep.com/api/openapi/marketplace/operator/profile/publish"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hiresweep.com/api/openapi/marketplace/operator/profile/publish")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiresweep.com/api/openapi/marketplace/operator/profile/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [
"software_engineering"
],
"levels": [
"entry"
],
"services": [
"applications"
],
"priceModel": "monthly",
"monthlyPriceUsd": 0,
"successFeeUsd": 0,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"termsVersion": "<string>",
"termsAcceptedAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"suspendedAt": "2023-11-07T05:31:56Z",
"suspendedReason": "<string>",
"status": "unpublished",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"defined": true,
"code": "HANDLE_INVALID",
"status": 400,
"message": "A handle is 3 to 30 lower-case letters, digits or hyphens, and starts and ends with a letter or digit.",
"data": "<unknown>"
}{
"defined": true,
"code": "OPERATOR_SUSPENDED",
"status": 403,
"message": "This operator profile is suspended.",
"data": "<unknown>"
}{
"defined": true,
"code": "HANDLE_TAKEN",
"status": 409,
"message": "That handle is taken.",
"data": "<unknown>"
}Response
Your operator profile, published.