onesky / api-library-php5

PHP5 library for OneSky API
MIT License
19 stars 12 forks source link

phrase-collections - 400 error - Project doesn't belong to phrase collection type #14

Closed BernardoSilva closed 9 years ago

BernardoSilva commented 9 years ago

When iI try to

POST /projects/123/phrase-collections

I got this error:

[status] => 400
[message] => Project doesn't belong to phrase collection type

the params I am sending are similar to this:

array(1) {
  ["collections"]=>
  array(16) {
    ["campaign_label.en"]=>
    array(2) {
      ["updated"]=>
      array(1) {
        ["string"]=>
        string(7) "Updated"
      }
      ["new"]=>
      array(1) {
        ["string"]=>
        string(3) "New"
      }
    }
}

What does it mean?

VLMH commented 9 years ago

Phrase collection is a project type in specific data structure. From the message, it looks like that the project is not in phrase collection type. The endpoint only serve phrase collection type project. Please update your file and upload it again via POST projects/:project_id/files.

p.s. Please send us ticket via support@oneskyapp.com instead of creating issue here in order not to expose sensitive information.