Hi,
I’m trying to create a new resource like this:
transifex_api.Resource.create(project=project, name="test", slug="test", i18n_format="PO")
I’m struggling to figure out what should be the i18n_format param. If I don’t provide it I get
JsonApiException_400_invalid: (400, [{‘status’: ‘400’, ‘code’: ‘invalid’, ‘title’: ‘Field
i18n_format
is invalid’, ‘detail’: “‘i18n_format’ is a required property”, ‘source’: {‘pointer’: ‘/data/relationships/i18n_format’}}], <Response [400]>)
When provided I get
JsonApiException_400_invalid: (400, [{‘status’: ‘400’, ‘code’: ‘invalid’, ‘title’: ‘Field
attributes
is invalid’, ‘detail’: “Additional properties are not allowed (‘i18n_format’ was unexpected)”, ‘source’: {‘pointer’: ‘/data/attributes’}}, {‘status’: ‘400’, ‘code’: ‘invalid’, ‘title’: ‘Fieldi18n_format
is invalid’, ‘detail’: “‘i18n_format’ is a required property”, ‘source’: {‘pointer’: ‘/data/relationships/i18n_format’}}], <Response [400]>)
What’s the correct method of creating it?