Save your operator profile
curl --request PUT \
--url https://hiresweep.com/api/openapi/marketplace/operator/profile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [],
"levels": [],
"services": [],
"monthlyPriceUsd": 10025,
"successFeeUsd": 25025,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"acceptTerms": true
}
'import requests
url = "https://hiresweep.com/api/openapi/marketplace/operator/profile"
payload = {
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [],
"levels": [],
"services": [],
"monthlyPriceUsd": 10025,
"successFeeUsd": 25025,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"acceptTerms": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
handle: '<string>',
displayName: '<string>',
headline: '<string>',
bio: '<string>',
roleFamilies: [],
levels: [],
services: [],
monthlyPriceUsd: 10025,
successFeeUsd: 25025,
guaranteeTerms: '<string>',
contactUrl: '<string>',
acceptTerms: true
})
};
fetch('https://hiresweep.com/api/openapi/marketplace/operator/profile', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'handle' => '<string>',
'displayName' => '<string>',
'headline' => '<string>',
'bio' => '<string>',
'roleFamilies' => [
],
'levels' => [
],
'services' => [
],
'monthlyPriceUsd' => 10025,
'successFeeUsd' => 25025,
'guaranteeTerms' => '<string>',
'contactUrl' => '<string>',
'acceptTerms' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hiresweep.com/api/openapi/marketplace/operator/profile"
payload := strings.NewReader("{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://hiresweep.com/api/openapi/marketplace/operator/profile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiresweep.com/api/openapi/marketplace/operator/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}"
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
Save your operator profile
Creates your operator profile on the first save and changes the fields you send. A draft can be partial; publishing checks that it is complete. A suspended operator cannot save. Requires authentication.
PUT
/
marketplace
/
operator
/
profile
Save your operator profile
curl --request PUT \
--url https://hiresweep.com/api/openapi/marketplace/operator/profile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [],
"levels": [],
"services": [],
"monthlyPriceUsd": 10025,
"successFeeUsd": 25025,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"acceptTerms": true
}
'import requests
url = "https://hiresweep.com/api/openapi/marketplace/operator/profile"
payload = {
"handle": "<string>",
"displayName": "<string>",
"headline": "<string>",
"bio": "<string>",
"roleFamilies": [],
"levels": [],
"services": [],
"monthlyPriceUsd": 10025,
"successFeeUsd": 25025,
"guaranteeTerms": "<string>",
"contactUrl": "<string>",
"acceptTerms": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
handle: '<string>',
displayName: '<string>',
headline: '<string>',
bio: '<string>',
roleFamilies: [],
levels: [],
services: [],
monthlyPriceUsd: 10025,
successFeeUsd: 25025,
guaranteeTerms: '<string>',
contactUrl: '<string>',
acceptTerms: true
})
};
fetch('https://hiresweep.com/api/openapi/marketplace/operator/profile', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'handle' => '<string>',
'displayName' => '<string>',
'headline' => '<string>',
'bio' => '<string>',
'roleFamilies' => [
],
'levels' => [
],
'services' => [
],
'monthlyPriceUsd' => 10025,
'successFeeUsd' => 25025,
'guaranteeTerms' => '<string>',
'contactUrl' => '<string>',
'acceptTerms' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hiresweep.com/api/openapi/marketplace/operator/profile"
payload := strings.NewReader("{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://hiresweep.com/api/openapi/marketplace/operator/profile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiresweep.com/api/openapi/marketplace/operator/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": \"<string>\",\n \"displayName\": \"<string>\",\n \"headline\": \"<string>\",\n \"bio\": \"<string>\",\n \"roleFamilies\": [],\n \"levels\": [],\n \"services\": [],\n \"monthlyPriceUsd\": 10025,\n \"successFeeUsd\": 25025,\n \"guaranteeTerms\": \"<string>\",\n \"contactUrl\": \"<string>\",\n \"acceptTerms\": true\n}"
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>"
}Body
application/json
Response
Your operator profile.