Bookings
Create Booking
Creates a new booking request for an artist
Create a new booking
curl --request POST \
--url http://localhost:3000/api/bookings/create-booking \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"artistUserId": "<string>",
"preferredLocationIds": [
"<string>"
],
"isCoverUp": true,
"tattooPlacement": [
"<string>"
],
"selectedDates": [
"2023-12-25"
],
"isOver18": true,
"isPolicyAccepted": true,
"description": "<string>",
"color": "<string>",
"length": "<string>",
"width": "<string>",
"otherTattooPlacement": "<string>",
"tattooStyle": [
"<string>"
],
"images": [
"<string>"
],
"links": [
"<string>"
],
"additionalDateComments": "<string>",
"medicalConditions": "<string>",
"flashIds": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/api/bookings/create-booking"
payload = {
"userId": "<string>",
"artistUserId": "<string>",
"preferredLocationIds": ["<string>"],
"isCoverUp": True,
"tattooPlacement": ["<string>"],
"selectedDates": ["2023-12-25"],
"isOver18": True,
"isPolicyAccepted": True,
"description": "<string>",
"color": "<string>",
"length": "<string>",
"width": "<string>",
"otherTattooPlacement": "<string>",
"tattooStyle": ["<string>"],
"images": ["<string>"],
"links": ["<string>"],
"additionalDateComments": "<string>",
"medicalConditions": "<string>",
"flashIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userId: '<string>',
artistUserId: '<string>',
preferredLocationIds: ['<string>'],
isCoverUp: true,
tattooPlacement: ['<string>'],
selectedDates: ['2023-12-25'],
isOver18: true,
isPolicyAccepted: true,
description: '<string>',
color: '<string>',
length: '<string>',
width: '<string>',
otherTattooPlacement: '<string>',
tattooStyle: ['<string>'],
images: ['<string>'],
links: ['<string>'],
additionalDateComments: '<string>',
medicalConditions: '<string>',
flashIds: ['<string>']
})
};
fetch('http://localhost:3000/api/bookings/create-booking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/bookings/create-booking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userId' => '<string>',
'artistUserId' => '<string>',
'preferredLocationIds' => [
'<string>'
],
'isCoverUp' => true,
'tattooPlacement' => [
'<string>'
],
'selectedDates' => [
'2023-12-25'
],
'isOver18' => true,
'isPolicyAccepted' => true,
'description' => '<string>',
'color' => '<string>',
'length' => '<string>',
'width' => '<string>',
'otherTattooPlacement' => '<string>',
'tattooStyle' => [
'<string>'
],
'images' => [
'<string>'
],
'links' => [
'<string>'
],
'additionalDateComments' => '<string>',
'medicalConditions' => '<string>',
'flashIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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 := "http://localhost:3000/api/bookings/create-booking"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("http://localhost:3000/api/bookings/create-booking")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/bookings/create-booking")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"message": "<string>"
}Body
application/json
Request to create a booking. Can be either Flash or Custom type. Required fields vary by requestType.
⌘I
Create a new booking
curl --request POST \
--url http://localhost:3000/api/bookings/create-booking \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"artistUserId": "<string>",
"preferredLocationIds": [
"<string>"
],
"isCoverUp": true,
"tattooPlacement": [
"<string>"
],
"selectedDates": [
"2023-12-25"
],
"isOver18": true,
"isPolicyAccepted": true,
"description": "<string>",
"color": "<string>",
"length": "<string>",
"width": "<string>",
"otherTattooPlacement": "<string>",
"tattooStyle": [
"<string>"
],
"images": [
"<string>"
],
"links": [
"<string>"
],
"additionalDateComments": "<string>",
"medicalConditions": "<string>",
"flashIds": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/api/bookings/create-booking"
payload = {
"userId": "<string>",
"artistUserId": "<string>",
"preferredLocationIds": ["<string>"],
"isCoverUp": True,
"tattooPlacement": ["<string>"],
"selectedDates": ["2023-12-25"],
"isOver18": True,
"isPolicyAccepted": True,
"description": "<string>",
"color": "<string>",
"length": "<string>",
"width": "<string>",
"otherTattooPlacement": "<string>",
"tattooStyle": ["<string>"],
"images": ["<string>"],
"links": ["<string>"],
"additionalDateComments": "<string>",
"medicalConditions": "<string>",
"flashIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userId: '<string>',
artistUserId: '<string>',
preferredLocationIds: ['<string>'],
isCoverUp: true,
tattooPlacement: ['<string>'],
selectedDates: ['2023-12-25'],
isOver18: true,
isPolicyAccepted: true,
description: '<string>',
color: '<string>',
length: '<string>',
width: '<string>',
otherTattooPlacement: '<string>',
tattooStyle: ['<string>'],
images: ['<string>'],
links: ['<string>'],
additionalDateComments: '<string>',
medicalConditions: '<string>',
flashIds: ['<string>']
})
};
fetch('http://localhost:3000/api/bookings/create-booking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/bookings/create-booking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userId' => '<string>',
'artistUserId' => '<string>',
'preferredLocationIds' => [
'<string>'
],
'isCoverUp' => true,
'tattooPlacement' => [
'<string>'
],
'selectedDates' => [
'2023-12-25'
],
'isOver18' => true,
'isPolicyAccepted' => true,
'description' => '<string>',
'color' => '<string>',
'length' => '<string>',
'width' => '<string>',
'otherTattooPlacement' => '<string>',
'tattooStyle' => [
'<string>'
],
'images' => [
'<string>'
],
'links' => [
'<string>'
],
'additionalDateComments' => '<string>',
'medicalConditions' => '<string>',
'flashIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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 := "http://localhost:3000/api/bookings/create-booking"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("http://localhost:3000/api/bookings/create-booking")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/bookings/create-booking")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"artistUserId\": \"<string>\",\n \"preferredLocationIds\": [\n \"<string>\"\n ],\n \"isCoverUp\": true,\n \"tattooPlacement\": [\n \"<string>\"\n ],\n \"selectedDates\": [\n \"2023-12-25\"\n ],\n \"isOver18\": true,\n \"isPolicyAccepted\": true,\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"length\": \"<string>\",\n \"width\": \"<string>\",\n \"otherTattooPlacement\": \"<string>\",\n \"tattooStyle\": [\n \"<string>\"\n ],\n \"images\": [\n \"<string>\"\n ],\n \"links\": [\n \"<string>\"\n ],\n \"additionalDateComments\": \"<string>\",\n \"medicalConditions\": \"<string>\",\n \"flashIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"message": "<string>"
}