Cloud api debug access errors

Hi, In the cloud api what should be in the parameters org= and bucket= is it the the Name or the id-string that should be entered ? I just get http response :“405 not allowed”. Any way to debug what is the problem ? Here is the url I use :
curl -XPOST ‘InfluxDB Cloud…&bucket=…&precision=s’
–header “Authorization: Token …”
–data-raw "
temp,ting1 box_temp=25.29 1617777710"

Solved: The url is different in cloud : add a /v2 : /api/v2/write.
With respect to the parameters org= and name= looks like either name or id works.