I’m testing out the new endpoint for project custom headers,
the docs say I must supply a :customColumn variable
" (Required) Project Custom columns to retrieve. Currently only headers is supported"
what exactly is this variable? can i supply multiple headers?
I tried the backend column name i get from the wells endpoint “projectCustomHeader”, then i tried the name gave it in the frontend “test custom”, “test_custom”, and tired just “headers”.
I keep getting CustomColumnHeaderNotFoundError.
Regarding the /v1/projects/:projectId/custom-columns/:custom-column endpoint:
the :custom-column path variable works similarly to the :projectId path variable. For example, you can use /v1/projects/62fc0449133c6c001360278f/custom-columns/headers. Currently, only headers is supported as the only available path variable to pass in, but if the API eventually supports project custom streams, we’ll use this endpoint to display those mappings in which case we will include another acceptable path parameter.
So to reiterate just pass in the string headers and you should be good to go!
By the way, If you need to insert or modify your project’s custom headers, you can do so through the /v1/projects/:projectId/wells or /v1/projects/:projectId/company-wells endpoints. These endpoints handle project custom headers in the same way we handle company custom headers.
I hope this clarifies things—let me know if you have any further questions!