Open a pull request that writes the accepted types into the repo's .speccy.yaml (REQ-133).
POST
/github/sources/{sourceId}/mapping
const url = 'https://example.com/api/v1/github/sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mapping';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/github/sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mappingParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”sourceId
required
string format: uuid
Responses
Section titled “ Responses ”The pull request.
Media typeapplication/json
object
pr_url
required
string
pr_number
required
integer
Examplegenerated
{ "pr_url": "example", "pr_number": 1}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}