Attachments · POST

POSThttps://vsqrd.com/attachments

SDKs & clients

Call the API

const url = "https://vsqrd.com/attachments";const response = await fetch(url, {  method: "POST",  headers: {    Authorization: "Bearer <token>",  },});if (!response.ok) {  throw new Error(`${response.status} ${response.statusText}`);}const data = await response.json();console.log(data);
using RestSharp;var client = new RestClient("https://vsqrd.com/attachments");var request = new RestRequest(Method.POST);request.AddHeader("Authorization", "Bearer <token>");IRestResponse response = client.Execute(request);
curl -X POST "https://vsqrd.com/attachments" \  -H "Authorization: Bearer <token>"
package mainimport (	"fmt"	"io"	"net/http")func main() {	url := "https://vsqrd.com/attachments"	req, _ := http.NewRequest("POST", url, nil)	req.Header.Add("Authorization", "Bearer <token>")	res, _ := http.DefaultClient.Do(req)	defer res.Body.Close()	body, _ := io.ReadAll(res.Body)	fmt.Println(string(body))}
<?phprequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('POST', 'https://vsqrd.com/attachments', [  'headers' => [    'Authorization' => 'Bearer <token>',  ],]);echo $response->getBody();
import requestsurl = "https://vsqrd.com/attachments"headers = {    "Authorization": "Bearer <token>"}response = requests.post(url, headers=headers)print(response.json())
require 'uri'require 'net/http'url = URI("https://vsqrd.com/attachments")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truerequest = Net::HTTP::Post.new(url)request["Authorization"] = 'Bearer <token>'response = http.request(request)puts response.read_body

HTTP status codes

Responses

StatusDescriptionSchema
200Success. JSON for an API client; HTML when the request's Accept header asks for it.
401No valid credentials were presented.
403This route is off the agent surface: a personal access key is refused here whatever its scope. Sign-in sessions are unaffected.
OpenAPI specification
openapi: 3.1.0info:  title: lims-core  version: 0.1.0  description: "Derived from the running server's routing table. Every endpoint answers JSON to a    client sending Accept: application/json, and HTML to a browser."servers:  - url: https://vsqrd.compaths:  /attachments:    post:      operationId: postAttachments      responses:        "200":          description: Success. JSON for an API client; HTML when the request's Accept header asks for it.        "401":          description: No valid credentials were presented.        "403":          description: "This route is off the agent surface: a personal access key is refused here whatever            its scope. Sign-in sessions are unaffected."      security:        - sessionCookie: []      tags:        - attachmentscomponents:  schemas: {}