I cannot create a new book
Hi @deniskar ,
today I was trying to change the way the domain is being created based on our discussion on Monday. organizationAbbrev_autoincrementNumber
.
However i am getting an 400 error when i sent a post request here is the message i get and the request i do:
Request failed: {
url: '/books/domain-service/domains/',
method: 'post',
data: '{"publisher":"CADTH","domain":"CADTH_18","title":"giannis word test 1 5","clone_from":"a1aaageneric"}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
Authorization: 'Basic Y29rbzpjb2tvYWxsb3dlZA==',
'User-Agent': 'axios/0.19.2',
'Content-Length': 101
},
baseURL: 'https://preview.ncbi.nlm.nih.gov',
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus]
}
Status
Status: 400
ErrorMessage
domain must start with a letter and only contains alphanumeric characters plus underscore